-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
see issue #12605
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 |
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. |
I'm perfectly fine with manipulating internals using the functions |
Not at the moment. |
This is a really important and useful feature to have, but I agree that it's past the window for getting into 0.4. |
@tkelman What do you think we should do here? |
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. |
Ok - perhaps the hybrid is not a great approach. Let's just do that slowly and hopefully by the 0.5 release. |
#14798 covers this and a bit more, so closing. Sorry this didn't go in as-is @matthieugomez. |
Thanks! |
issue #12605