Bindings for diag_mat, upper_tri, and vstack atoms#7
Merged
Transurgeon merged 4 commits intomainfrom Apr 15, 2026
Merged
Conversation
Add Python C extension bindings for four new SparseDiffEngine atoms: - diag_mat: extract diagonal from square matrix - upper_tri: extract strict upper triangular elements - kron_left: Kronecker product kron(C, X) with constant sparse C - vstack: vertical stack of expressions (via transpose-hstack composition) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve conflicts: use main's unified left_matmul/right_matmul (with format parameter) over separate sparse/dense functions. Keep new atoms: diag_mat, upper_tri, vstack. Remove kron_left (will be added in a follow-up PR). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merges SparseDiffEngine main into adds-more-affine-atoms branch to pick up folder restructuring and parameter support while preserving diag_mat, upper_tri, and vstack atoms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Transurgeon
added a commit
that referenced
this pull request
Apr 15, 2026
* Bindings for diag_mat, kron_left, upper_tri, and vstack atoms Add Python C extension bindings for four new SparseDiffEngine atoms: - diag_mat: extract diagonal from square matrix - upper_tri: extract strict upper triangular elements - kron_left: Kronecker product kron(C, X) with constant sparse C - vstack: vertical stack of expressions (via transpose-hstack composition) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update SparseDiffEngine submodule with main merge Merges SparseDiffEngine main into adds-more-affine-atoms branch to pick up folder restructuring and parameter support while preserving diag_mat, upper_tri, and vstack atoms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * pin diffengine to tag --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Python C extension bindings for three new SparseDiffEngine atoms: