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

Support for sparse vectors/matrices #5

Open
quinnj opened this issue Sep 15, 2014 · 7 comments
Open

Support for sparse vectors/matrices #5

quinnj opened this issue Sep 15, 2014 · 7 comments

Comments

@quinnj
Copy link
Member

quinnj commented Sep 15, 2014

It'd be great if support for sparse vectors/matrices could be made to work.

@johnmyleswhite
Copy link
Member

I've wanted this a lot recently while working with sparse document-term matrices.

@quinnj
Copy link
Member Author

quinnj commented Sep 16, 2014

My use case exactly! I'll poke around with it, but it seemed there were view implementations missing, amongst other things, so not just a matter of defining a method or two.

@lindahua
Copy link
Contributor

PRs are welcomed. But I don't have much time working on this in near term.

@toddleo
Copy link

toddleo commented Dec 3, 2014

Is there any specific reason that At_mul_b for two sparse matrices multiplication not implemented in base/linalg/sparse.jl?
I had to bypass At_mul_b via spmatmul to leverage pairwise work with sparse matrices, though the performance is not as blazing fast as using dense matrices.

For @quinnj 's view problem, Tim Holy pointed out SubArrays support views of sparse matrices.

With the two inconsistent and ugly modifications above on pairwise, one can merely make it work, whereas further work is still needed.

@wildart
Copy link

wildart commented Apr 13, 2015

Until type coverage for in-place in-place functions isn't decided, how about using InplaceOps for abstracting in-place functions?

@jlapeyre
Copy link
Contributor

Fixing this issue might help in implementing this.

@jlapeyre
Copy link
Contributor

jlapeyre commented Nov 30, 2021

I made a PR JuliaLang/julia#235 to add a good bit of support for SparseVector, although it doesn't cover everything. In particular I did not support or even look into matrices.

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

No branches or pull requests

6 participants