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
A negative shift is undefined in C. Python raises a ValueError, numpy returns the undefined values. We should at least warn, and probably raise an Error.
>>> a = np.arange(4)
>>> 10 << -1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: negative shift count
>>> a << -1
array([-9223372036854775808, 0, -9223372036854775808,
0])
The text was updated successfully, but these errors were encountered:
xref gh-13739
A negative shift is undefined in C. Python raises a ValueError, numpy returns the undefined values. We should at least warn, and probably raise an Error.
The text was updated successfully, but these errors were encountered: