We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a documentation bug more than a functionality bug, so reproducibility does not exactly apply.
The docstring example in vectorize provides a ufunc of sum that has identity=1. I believe this should be 0 (additive identity):
vectorize
sum
identity=1
0
numba/numba/np/ufunc/decorators.py
Lines 100 to 103 in 15e4878
The later example for mul correctly sets identity=1.
mul
The text was updated successfully, but these errors were encountered:
@bmcfee thank you for bringing this to our attention. This seems correct as the identity for addition is indeed 0.
Sorry, something went wrong.
Fix typo in @vectorize docstring and a NumPy spelling.
2bf926e
As title. Fixes numba#8227
Successfully merging a pull request may close this issue.
Reporting a bug
This is a documentation bug more than a functionality bug, so reproducibility does not exactly apply.
The docstring example in
vectorize
provides a ufunc ofsum
that hasidentity=1
. I believe this should be0
(additive identity):numba/numba/np/ufunc/decorators.py
Lines 100 to 103 in 15e4878
The later example for
mul
correctly setsidentity=1
.visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
I have included a self contained code sample to reproduce the problem.N/Ai.e. it's possible to run as 'python bug.py'.
The text was updated successfully, but these errors were encountered: