Skip to content

left_matmul: one Jacobian path through BA_kron_matrices_* - #166

Merged
dance858 merged 2 commits into
mainfrom
kron-dispatcher
Oct 13, 2026
Merged

dance858 merged 2 commits into
mainfrom
kron-dispatcher

Conversation

@dance858

@dance858 dance858 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Pins sparsediff_linalg to v0.5.1.

Absorbs:

  • sparsediff_linalg#33: BA_kron_matrices_*, one dispatcher for C = kron(I_p, A) @ J that routes on p == 1 / A's kind.
  • sparsediff_linalg#32: free_fn slot removed (engine only calls free_matrix, unchanged); DA_matrices_fill_values moved to matmul.h.

Changes:

  • left_matmul.c: jacobian_init_dense/_sparse and eval_jacobian_dense/_sparse (each with its own n_blocks == 1 branch) become one jacobian_init_impl / eval_jacobian_impl pair on the dispatcher; both constructors use it. Drops the now-unused matmul.h include.
  • vector_mult.c: include matmul.h for DA_matrices_fill_values.

No behaviour change: the dispatcher routes to the same functions the atom called before. 304 engine tests pass (Debug and Release), the library suite passes, PROFILE_ONLY builds, no new warnings.

🤖 Generated with Claude Code

dance858 and others added 2 commits October 13, 2026 17:15
Pins sparsediff_linalg to the head of sparsediff_linalg#33 (stacked on #32;
untagged, to be repinned to v0.5.1). The dense and sparse jacobian_init /
eval_jacobian pairs become one pair calling the new dispatcher, which routes on
A's kind and on n_blocks == 1. vector_mult.c includes matmul.h, where #32 moved
DA_matrices_fill_values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dance858
dance858 marked this pull request as ready for review October 13, 2026 15:48
@dance858
dance858 merged commit 3511dc7 into main Oct 13, 2026
14 checks passed
@dance858
dance858 deleted the kron-dispatcher branch October 15, 2026 05:39
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