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
BUG: Division overflow tracking issue #21506
Labels
Comments
seberg
pushed a commit
that referenced
this issue
Jul 17, 2022
…ication (#21793) Remane `npy_mul_with_overflow_intp` to `npy_mul_sizes_with_overflow` as it only allows positive numbers. Then introduce new versions for all integers (not intp) to use it for the integer scalar math with overflow detection. (It is OK to use everywhere, just for sizes we know they will be positive normally.) Related to #21506 Follow-up to #21648
All of these issues should now be fixed, so closing. |
ganesh-k13
added a commit
to ganesh-k13/numpy
that referenced
this issue
Sep 14, 2022
charris
added a commit
that referenced
this issue
Sep 19, 2022
DOC: Better report integer division overflow (#21506)
charris
pushed a commit
to charris/numpy
that referenced
this issue
Oct 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
Currently, there are various cases where division leads to overflow/arithmetic exceptions. This happens when the dividend is the smallest possible value of the dtype and the divisor is
-1
.Example:
Reproduce the code example:
https://gist.github.com/ganesh-k13/6faaf65d418db13012bd403250cca70a
Error message:
NumPy/Python version information:
1.22.3 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0]
Relate Issues and PRs:
ToDo
The text was updated successfully, but these errors were encountered: