MCPcopy Index your code
hub / github.com/numpy/numpy / test_exp_float32

Method test_exp_float32

numpy/_core/tests/test_umath.py:2182–2186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2180
2181class TestAVXFloat32Transcendental:
2182 def test_exp_float32(self):
2183 np.random.seed(42)
2184 x_f32 = np.float32(np.random.uniform(low=0.0, high=88.1, size=1000000))
2185 x_f64 = np.float64(x_f32)
2186 assert_array_max_ulp(np.exp(x_f32), np.float32(np.exp(x_f64)), maxulp=3)
2187
2188 def test_log_float32(self):
2189 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