Skip to content
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

Support for 'at' ufunc method #548

Open
purepani opened this issue Apr 25, 2022 · 3 comments
Open

Support for 'at' ufunc method #548

purepani opened this issue Apr 25, 2022 · 3 comments
Labels
enhancement Indicates new feature requests

Comments

@purepani
Copy link

Is your feature request related to a problem? Please describe.
np.add.at(a, mask, b) is a replacement for a[mask] += b, except repeated indices will cause the addition to be performed as many times as they appear as opposed to just once. This ufunc method would be useful to support as using a for loop for this would be very costly.

Describe the solution you'd like
Add support for the at ufunc; currently a NotImplemented error is thrown when attempting to use np.add.at on sparse arrays.

@purepani purepani added the enhancement Indicates new feature requests label Apr 25, 2022
@jakevdp
Copy link
Collaborator

jakevdp commented Apr 25, 2022

[off topic]

@jakevdp jakevdp self-assigned this Apr 25, 2022
@hameerabbasi
Copy link
Collaborator

@jakevdp I think you misunderstood the repo this issue was raised in. ;)

@jakevdp
Copy link
Collaborator

jakevdp commented Apr 25, 2022

Ha, oops! Thanks.

@jakevdp jakevdp removed their assignment Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

3 participants