-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
out kwarg to bincount #7998
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
Comments
So you would accumulate on top of the value already stored in the array? That's an interesting idea! Can you elaborate on how it replaces Deciding on doing this would probably need some discussion on the list, but implementing it should be relatively straightforward. |
Basically, you'd replace
by
TBH I feel it would be preferable to fix the performance of |
I think you can get a speedup of maybe even up to 5 without completely overhauling |
In PR #23136 |
Closing, #23136 was merged |
bincount
could gain anout
kwarg (which would not get zeroed before adding the weights).Rationale: This would sidestep the issue of poor ufunc.at performance (#5922) at least for the
add
ufunc.I'd expect this kwarg to be incompatible with
minlength
; theminlength
would simply be obtained from the length of theout
array.The text was updated successfully, but these errors were encountered: