Skip to content

Conversation

@SteveDiamond
Copy link
Member

In scipy 1.14+, scipy.sparse.bmat() returns a sparse array (e.g., coo_array) instead of a sparse matrix (coo_matrix) when any of the input blocks are sparse arrays. The diffcp C++ bindings (_diffcp.M_operator) specifically expect scipy.sparse.csc_matrix. This change was breaking tests in the cvxpy CI.

@SteveDiamond SteveDiamond requested a review from PTNobel December 22, 2025 19:57
@PTNobel PTNobel merged commit 5e43815 into master Dec 22, 2025
3 of 4 checks passed
@SteveDiamond SteveDiamond deleted the steven/fix_scipy_format branch December 22, 2025 20:09
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.

3 participants