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?
to your account
The x.nnz should be 1 for for a nonzero scalar x, yet it is zero. MWE:
import numpy as np
x = 1 + np.random.rand(5, 5)
xs = sparse.COO.from_numpy(x)
Out: <COO: shape=(), dtype=float64, nnz=0, sorted=True, duplicates=False>
The text was updated successfully, but these errors were encountered:
Fixed with #48.
Successfully merging a pull request may close this issue.