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

Default axis doesn't match that of numpy.ufunc.reduce #107

hameerabbasi opened this Issue Feb 23, 2018 · 0 comments


None yet
1 participant

hameerabbasi commented Feb 23, 2018

The default axis doesn't match that of numpy.ufunc.reduce. There, it is (0,) but we use None.

Minimal example:

>>> import numpy as np
>>> import sparse
>>> x = np.eye(5)
>>> s = sparse.COO.from_numpy(x)
>>> np.add.reduce(s)
>>> np.add.reduce(x)
array([1., 1., 1., 1., 1.])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment