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

ENH: sparse.csr_matrix: parallelize dot product #20845

Open
emamars95 opened this issue May 31, 2024 · 2 comments · May be fixed by #19717
Open

ENH: sparse.csr_matrix: parallelize dot product #20845

emamars95 opened this issue May 31, 2024 · 2 comments · May be fixed by #19717
Labels
enhancement A new feature or improvement scipy.sparse

Comments

@emamars95
Copy link

emamars95 commented May 31, 2024

Is your feature request related to a problem? Please describe.

I am not sure if I am doing something wrong but I am using scipy.sparse.csr_matrix object and contract it with a np.ndarray object using the method dot: scipy.sparse.csr_matrix.dot(np.ndarray).
I noticed that the operation is not parallelized. Is there any possibility to parallelize the sparse matrix operations (like dot/kron) in scipy?

PS: I test the execution with numpy.dot at it runs in multicore. Both my scipy and numpy are installed with conda and linked with blas/lapack

Describe the solution you'd like.

The solution I would like is the parallelization of the dot/kron products with sparse matrices.

Describe alternatives you've considered.

numpy.dot without relying in sparse matrix

Additional context (e.g. screenshots, GIFs)

No response

@emamars95 emamars95 added the enhancement A new feature or improvement label May 31, 2024
@lucascolley lucascolley changed the title ENH: parallelize csr_matrix dot product ENH: sparse.csr_matrix: parallelize dot product May 31, 2024
@lucascolley
Copy link
Member

you may be interested in gh-19717

@emamars95
Copy link
Author

Thanks @lucascolley

@lucascolley lucascolley reopened this Jun 3, 2024
@lucascolley lucascolley linked a pull request Jun 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement scipy.sparse
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants