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 default axis doesn't match that of numpy.ufunc.reduce. There, it is (0,) but we use None.
numpy.ufunc.reduce
(0,)
None
Minimal example:
>>> import numpy as np >>> import sparse >>> x = np.eye(5) >>> s = sparse.COO.from_numpy(x) >>> np.add.reduce(s) 5.0 >>> np.add.reduce(x) array([1., 1., 1., 1., 1.])
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The default axis doesn't match that of
numpy.ufunc.reduce
. There, it is(0,)
but we useNone
.Minimal example:
The text was updated successfully, but these errors were encountered: