Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose sparse NNLS to Python #42

Merged
merged 4 commits into from
Mar 24, 2024
Merged

Expose sparse NNLS to Python #42

merged 4 commits into from
Mar 24, 2024

Conversation

jvansanten
Copy link
Collaborator

There seem to be no other sparse implementations of Lawson-Hanson NNLS accessible from Python, so let's expose the one we ship in photospline.

Almost all of the new code is there to build a cholmod_sparse view into the supplied scipy.sparse.csc_matrix, which is more complicated that it should be due to scipy.sparse's insistence on falling back to int32 for the column indices and row pointers of small matrices.

@jvansanten jvansanten merged commit 05f4b1c into master Mar 24, 2024
12 checks passed
@jvansanten jvansanten deleted the nnls-python branch March 24, 2024 20:23
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