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
dok_matrix no longer allows update #8338
Comments
The change was made in #7673 @perimosocordiae, can you comment on this?
You can assign a value to a
|
Thanks. However, the |
The The recommended way to bulk-add elements to a DOK matrix is either (a) use fancy indexing to assign like you would for a dense array/matrix, or (b) loop over your values and use scalar-index assignment. If you really must have the speed of a raw |
Wouldn't it be possible to implement an |
Sure, that seems reasonable. |
In previous versions, scipy allowed an
update
onsparse.dok_matrix
. This seems to be no longer the case with v1.0.0.With version 0.19.0, no error is thrown, and the matrix is updated accordingly.
The docs imply that the
update
method is still supported. If this isn't a bug, is there a suggested approach to update adok_matrix
?Reproducing code example:
Error message:
Scipy/Numpy/Python version information:
The text was updated successfully, but these errors were encountered: