Skip to content

Conversation

@ZedongPeng
Copy link
Collaborator

Fixes #20

Summary

In MPAX, we use BCOO.fromdense to convert a numpy.array to BCOO. To make the function safely jittable, we set nse=matrix.shape[0] * matrix.shape[1], which stores the matrix as fully dense in a sparse wrapper. Honestly, this does not make sense. This PR removes support for numpy.array when use_sparse_matrix=True, to avoid silent performance issues like this.

setting nse=shape[0]*shape[1] will make the matrix fully dense and mpax very slow
@ZedongPeng ZedongPeng merged commit edfa813 into MIT-Lu-Lab:main May 20, 2025
10 checks passed
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.

MPax is very very slow at solving some linear programming problems.

1 participant