diff options
author | Meekail Zain <34613774+Micky774@users.noreply.github.com> | 2022-07-17 11:25:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 08:25:04 -0700 |
commit | 4156ae2606a3143b8b3147bddf5291d679172c02 (patch) | |
tree | 20dda2442d3f8ccfd903f32f526d24ec58c953ef /numpy/array_api/tests/test_array_object.py | |
parent | 6b8d55e66e532d66e1701ad039b4cda306839b3f (diff) | |
download | numpy-4156ae2606a3143b8b3147bddf5291d679172c02.tar.gz |
ENH,MAINT: Add overflow handling for negative integers scalar multiplication (#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
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions