Skip to content

Add parameter support to Python bindings#1

Open
Transurgeon wants to merge 4 commits intomainfrom
parameter-support
Open

Add parameter support to Python bindings#1
Transurgeon wants to merge 4 commits intomainfrom
parameter-support

Conversation

@Transurgeon
Copy link
Collaborator

  • Add parameter, scalar_mult, vector_mult bindings for updatable params
  • Add register_params and update_params problem bindings
  • Update constant.h to use unified new_parameter with PARAM_FIXED
  • Update const_scalar_mult.h and const_vector_mult.h for new parameter API
  • Unify left_matmul and left_param_matmul into single binding that accepts (param_or_none, child, csr_data, csr_indices, csr_indptr, m, n)
  • Update SparseDiffEngine submodule to parameter-support branch
  • Register all new methods in bindings.c

- Unify make_left_matmul and make_left_param_matmul into single binding
- Accept (param_or_none, child, data, indices, indptr, m, n)
- Delete left_param_matmul.h (merged into left_matmul.h)
- Update SparseDiffEngine submodule (simplified new_left_matmul API)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Transurgeon and others added 3 commits February 16, 2026 00:19
- left_matmul.h: replace col-major conversion with direct CSR data
  pass to new_parameter(nnz, 1, PARAM_FIXED, ...)
- Update SparseDiffEngine submodule (CSR data order for params)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update py_make_right_matmul signature to (param_or_none, child, data,
indices, indptr, m, n) matching left_matmul. When param_or_none is None,
a PARAM_FIXED node is created internally; otherwise the passed parameter
capsule is used for updatable sparse parameters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant