You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implicit type casting for binary operators seems to ignore types of scalar values, see code example below where the left operand is passed a 0D scalar and 1D array respectively.
This behaviour provokes unexpected overflow errors in corner cases of empty shape tuples that can be easily overseen.
Yeah, it is a known issue, but hard to fix (i.e. may even need a NumPy 2.0 release due to incompatibility)... Which is why this has been lying around for years without anything serious being done. Basically a duplicate of gh-10322. (and probably others)
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
Implicit type casting for binary operators seems to ignore types of scalar values, see code example below where the left operand is passed a 0D scalar and 1D array respectively.
This behaviour provokes unexpected overflow errors in corner cases of empty shape tuples that can be easily overseen.
Reproduce the code example:
Error message:
No response
NumPy/Python version information:
1.20.3 3.8.8 (default, Feb 24 2021, 21:46:12)
[GCC 7.3.0]
The text was updated successfully, but these errors were encountered: