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

Method test_log_float32

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

Source from the content-addressed store, hash-verified

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)
1985 x_f32 = np.float32(np.random.uniform(low=0.0,high=1000,size=1000000))
1986 x_f64 = np.float64(x_f32)
1987 assert_array_max_ulp(np.log(x_f32), np.float32(np.log(x_f64)), maxulp=4)
1988
1989 def test_sincos_float32(self):
1990 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