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

add keepzeros option in sparse #12608

Closed
wants to merge 4 commits into from
Closed

add keepzeros option in sparse #12608

wants to merge 4 commits into from

Conversation

matthieugomez
Copy link
Contributor

issue #12605

matthieugomez added 2 commits August 13, 2015 14:02
@kshyatt kshyatt added the sparse Sparse arrays label Aug 13, 2015
@tkelman
Copy link
Contributor

tkelman commented Aug 13, 2015

Please squash the commits here. This could use quite a few more tests, and documentation. This should probably be benchmarked as well to check whether the addition of a keyword argument makes a noticeable difference to the performance of sparse. There are some packages, Convex.jl as one example, that spend quite a bit of time calling sparse in inner loops.

@ViralBShah
Copy link
Member

I would like to hold this till 0.5, and not want to do it this late.

There is the obvious issue here that the moment you do some other sparse matrix operation that uses this matrix, the zeros will get squeezed out in the result. Once 0.4 is done, I would like to revisit the design issues with stored zeros.

@ViralBShah ViralBShah added this to the 0.5 milestone Aug 14, 2015
@matthieugomez
Copy link
Contributor Author

I'm perfectly fine with manipulating internals using the functions rowvals zrange and nonzeros afterwards. I then use some matrix multiplication / division. All these operations keep the structural zeros right?

@ViralBShah
Copy link
Member

Not at the moment.

@mlubin
Copy link
Member

mlubin commented Aug 14, 2015

This is a really important and useful feature to have, but I agree that it's past the window for getting into 0.4.

@ViralBShah
Copy link
Member

@tkelman What do you think we should do here?

@tkelman
Copy link
Contributor

tkelman commented Nov 4, 2015

Gradually move away from matlab's approach to stored zeros and more towards a scipy design. A keyword argument might not be the best way to accomplish this though.

@ViralBShah
Copy link
Member

Ok - perhaps the hybrid is not a great approach. Let's just do that slowly and hopefully by the 0.5 release.

@tkelman
Copy link
Contributor

tkelman commented Feb 25, 2016

#14798 covers this and a bit more, so closing. Sorry this didn't go in as-is @matthieugomez.

@tkelman tkelman closed this Feb 25, 2016
@matthieugomez
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sparse Sparse arrays
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants