class documentation
class TestSpecialFloats: (source)
Undocumented
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Constant | BYZERO |
Undocumented |
Constant | INF |
Undocumented |
Constant | LTONE |
Undocumented |
Constant | NEG |
Undocumented |
Constant | ONE |
Undocumented |
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_arccosh(self): (source) ¶
def test_arccosh(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_arcsincos(self): (source) ¶
def test_arcsincos(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_arctanh(self): (source) ¶
def test_arctanh(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_cosh(self): (source) ¶
def test_cosh(self): (source) ¶
Undocumented
@pytest.mark.xfail( _glibc_older_than( '2.17'), reason='Older glibc versions may not raise appropriate FP exceptions')
def test_exp2(self): (source) ¶
def test_exp2(self): (source) ¶
Undocumented
@pytest.mark.xfail( _glibc_older_than( '2.17'), reason='Older glibc versions may not raise appropriate FP exceptions')
def test_exp_exceptions(self): (source) ¶
def test_exp_exceptions(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_expm1(self): (source) ¶
def test_expm1(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_log_values(self): (source) ¶
def test_log_values(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_reciprocal_values(self): (source) ¶
def test_reciprocal_values(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_sincos_values(self): (source) ¶
def test_sincos_values(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_sinh(self): (source) ¶
def test_sinh(self): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
def test_square_values(self): (source) ¶
def test_square_values(self): (source) ¶
Undocumented
@pytest.mark.parametrize( 'ufunc', UFUNCS_UNARY_FP)
@pytest.mark.parametrize( 'dtype', ( 'e', 'f', 'd'))
@pytest.mark.parametrize( 'data, escape', ( ( [ 0.03], LTONE_INVALID_ERR), ( [ 0.03]*32, LTONE_INVALID_ERR), ( [ -1.0], NEG_INVALID_ERR), ( [ -1.0]*32, NEG_INVALID_ERR), ( [ 1.0], ONE_INVALID_ERR), ( [ 1.0]*32, ONE_INVALID_ERR), ( [ 0.0], BYZERO_ERR), ( [ 0.0]*32, BYZERO_ERR), ( [ -0.0], BYZERO_ERR), ( [ -0.0]*32, BYZERO_ERR), ( [ 0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), ( [ 0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), ( [ np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), ( [ np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), ( [ np.nan], []), ( [ np.nan]*32, []), ( [ 0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR+LTONE_INVALID_ERR), ( [ 0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR+LTONE_INVALID_ERR), ( [ np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), ( [ np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), ( [ np.inf], INF_INVALID_ERR), ( [ np.inf]*32, INF_INVALID_ERR), ( [ 0.5, 0.5, 0.5, -np.inf], (NEG_INVALID_ERR+INF_INVALID_ERR)+LTONE_INVALID_ERR), ( [ 0.5, 0.5, 0.5, -np.inf]*32, (NEG_INVALID_ERR+INF_INVALID_ERR)+LTONE_INVALID_ERR), ( [ -np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR+INF_INVALID_ERR), ( [ -np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR+INF_INVALID_ERR), ( [ -np.inf], NEG_INVALID_ERR+INF_INVALID_ERR), ( [ -np.inf]*32, NEG_INVALID_ERR+INF_INVALID_ERR)))
def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): (source) ¶
@pytest.mark.parametrize(
@pytest.mark.parametrize(
def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): (source) ¶
Undocumented