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

Method _check_ldexp

numpy/core/tests/test_umath.py:2234–2240  ·  view source on GitHub ↗
(self, tp)

Source from the content-addressed store, hash-verified

2232
2233class TestLdexp:
2234 def _check_ldexp(self, tp):
2235 assert_almost_equal(ncu.ldexp(np.array(2., np.float32),
2236 np.array(3, tp)), 16.)
2237 assert_almost_equal(ncu.ldexp(np.array(2., np.float64),
2238 np.array(3, tp)), 16.)
2239 assert_almost_equal(ncu.ldexp(np.array(2., np.longdouble),
2240 np.array(3, tp)), 16.)
2241
2242 def test_ldexp(self):
2243 # The default Python int type should work

Callers 1

test_ldexpMethod · 0.95

Calls 1

assert_almost_equalFunction · 0.90

Tested by

no test coverage detected