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
We should add a check for overflow in arrays of dtype complex64 (complex128 and larger can't overflow, because we only generate 64-bit floats). Here's the code that currently handles this - it's probably sufficient to apply the floats check to both real and imaginary parts:
In this StackOverflow question, the lack of overflow warnings for complex numbers led to some confusion.
We should add a check for overflow in arrays of dtype
complex64(complex128and larger can't overflow, because we only generate 64-bit floats). Here's the code that currently handles this - it's probably sufficient to apply the floats check to both real and imaginary parts:hypothesis/hypothesis-python/src/hypothesis/extra/numpy.py
Lines 135 to 148 in b4a064f
If possible we should also check for truncation in string arrays.
The text was updated successfully, but these errors were encountered: