Skip to content

Release/0.2.x#82

Closed
Transurgeon wants to merge 5 commits intomainfrom
release/0.2.x
Closed

Release/0.2.x#82
Transurgeon wants to merge 5 commits intomainfrom
release/0.2.x

Conversation

@Transurgeon
Copy link
Copy Markdown
Collaborator

No description provided.

Transurgeon and others added 5 commits April 11, 2026 14:13
* Add upper_tri and diag_mat affine atoms

Both are thin wrappers that compute flat column-major index arrays
and delegate to new_index. diag_mat extracts the diagonal of a
square matrix into a vector. upper_tri extracts strict upper
triangular elements (excluding diagonal).

Also removes a duplicate new_diag_vec declaration in affine.h.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix upper_tri to use row-major ordering to match CVXPY

CVXPY's upper_tri returns elements row-by-row (i outer, j inner),
which differs from the engine's typical column-major convention.
Swap the loop nesting to iterate rows-then-columns for compatibility.
Add a 4x4 forward test that distinguishes the two orderings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Remove SPDX headers and redundant 3x3 upper_tri test

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Upgrade upper_tri jacobian and hessian tests to 4x4

The 3x3 tests produced identical indices for both row-major and
column-major orderings, so they didn't actually verify the fix.
4x4 indices [4,8,12,9,13,14] differ from column-major [4,8,9,12,13,14].

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Run clang-format on changed files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* update license header line for all source files

* add license to new files

* remove empty lines at the end of files
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