MCPcopy Create free account
hub / github.com/numpy/numpy / test_exp_float32

Method test_exp_float32

numpy/core/tests/test_umath.py:1977–1981  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1975
1976class TestAVXFloat32Transcendental:
1977 def test_exp_float32(self):
1978 np.random.seed(42)
1979 x_f32 = np.float32(np.random.uniform(low=0.0,high=88.1,size=1000000))
1980 x_f64 = np.float64(x_f32)
1981 assert_array_max_ulp(np.exp(x_f32), np.float32(np.exp(x_f64)), maxulp=3)
1982
1983 def test_log_float32(self):
1984 np.random.seed(42)

Callers

nothing calls this directly

Calls 2

assert_array_max_ulpFunction · 0.90
uniformMethod · 0.80

Tested by

no test coverage detected