We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The x.nnz should be 1 for for a nonzero scalar x, yet it is zero. MWE:
x.nnz
1
x
import numpy as np x = 1 + np.random.rand(5, 5) import sparse xs = sparse.COO.from_numpy(x) xs[1, 1] Out[6]: <COO: shape=(), dtype=float64, nnz=0, sorted=True, duplicates=False>
The text was updated successfully, but these errors were encountered:
Fixed with #48.
Sorry, something went wrong.
No branches or pull requests
The
x.nnz
should be1
for for a nonzero scalarx
, yet it is zero. MWE:The text was updated successfully, but these errors were encountered: