-
-
Notifications
You must be signed in to change notification settings - Fork 151
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 sum
to _sparse_py_operators
#522
Comments
@aerubanov Can you add more complete example code that imports modules and creates a sparse matrix? |
There is already support for sums on sparse matrices; see here. If you're having specific issues with this functionality, you can open another issue or update this one with a minimum working example; otherwise, I'll assume this particular issue is only about adding a |
@brandonwillard Thank you, looks like it is exactly what I need! I just couldn't find it in the documentation. So I close the issue. |
We should still have a |
sum
to _sparse_py_operators
This feature was implemented in #745, so I close issue. |
When working on pymc-devs/pymc#4596, I needed the sum() method for sparse matrices for doing things like these:
and as a result, D should be dense vector
[2.0, 2.0, 2.0, 2.0]
.The text was updated successfully, but these errors were encountered: