module documentation
Undocumented
Function | check |
There are many dedicated paths in NumPy which cast and should check for floating point errors which occurred during those casts. |
Function | test |
Undocumented |
Function | values |
Generate value+dtype pairs that generate floating point errors during casts. The invalid casts to integers will generate "invalid" value warnings, the float casts all generate "overflow". |
There are many dedicated paths in NumPy which cast and should check for floating point errors which occurred during those casts.
@pytest.mark.skipif( IS_WASM, reason='no wasm fp exception support')
@pytest.mark.parametrize( [ 'value', 'dtype'], values_and_dtypes())
@pytest.mark.filterwarnings( 'ignore::numpy.ComplexWarning')
def test_floatingpoint_errors_casting(dtype, value): (source) ¶
@pytest.mark.parametrize(
@pytest.mark.filterwarnings(
def test_floatingpoint_errors_casting(dtype, value): (source) ¶
Undocumented