class documentation

class TestSpecialFloats: (source)

View In Hierarchy

Undocumented

Method test_abs_values Undocumented
Method test_arccosh Undocumented
Method test_arcsincos Undocumented
Method test_arcsinh Undocumented
Method test_arctan Undocumented
Method test_arctanh Undocumented
Method test_cosh Undocumented
Method test_exp2 Undocumented
Method test_exp_exceptions Undocumented
Method test_exp_values Undocumented
Method test_expm1 Undocumented
Method test_log_values Undocumented
Method test_reciprocal_values Undocumented
Method test_sincos_values Undocumented
Method test_sinh Undocumented
Method test_sqrt_values Undocumented
Method test_square_values Undocumented
Method test_tan Undocumented
Method test_tanh Undocumented
Method test_unary_spurious_fpexception Undocumented
Constant BYZERO_ERR Undocumented
Constant INF_INVALID_ERR Undocumented
Constant LTONE_INVALID_ERR Undocumented
Constant NEG_INVALID_ERR Undocumented
Constant ONE_INVALID_ERR Undocumented
def test_abs_values(self): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
def test_arccosh(self): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
def test_arcsincos(self): (source)

Undocumented

def test_arcsinh(self): (source)

Undocumented

def test_arctan(self): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
def test_arctanh(self): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
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)

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)

Undocumented

def test_exp_values(self): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
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)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
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)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
def test_sinh(self): (source)

Undocumented

@pytest.mark.parametrize('dt', ['e', 'f', 'd', 'g'])
def test_sqrt_values(self, dt): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
def test_square_values(self): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
def test_tan(self): (source)

Undocumented

def test_tanh(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)

Undocumented

BYZERO_ERR = (source)

Undocumented

Value
[np.log, np.log2, np.log10, np.reciprocal, np.arccosh]
INF_INVALID_ERR = (source)

Undocumented

Value
[np.cos, np.sin, np.tan, np.arccos, np.arcsin, np.spacing, np.arctanh]
LTONE_INVALID_ERR = (source)

Undocumented

Value
[np.arccosh]
NEG_INVALID_ERR = (source)

Undocumented

Value
[np.log, np.log2, np.log10, np.log1p, np.sqrt, np.arccosh, np.arctanh]
ONE_INVALID_ERR = (source)

Undocumented

Value
[np.arctanh]