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

Method test_log_float32

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

Source from the content-addressed store, hash-verified

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)
2190 x_f32 = np.float32(np.random.uniform(low=0.0, high=1000, size=1000000))
2191 x_f64 = np.float64(x_f32)
2192 assert_array_max_ulp(np.log(x_f32), np.float32(np.log(x_f64)), maxulp=4)
2193
2194 def test_sincos_float32(self):
2195 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