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

Method test_large_float_sum

numpy/_core/tests/test_regression.py:1677–1679  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1675 assert_(np.all(a))
1676
1677 def test_large_float_sum(self):
1678 a = np.arange(10000, dtype='f')
1679 assert_equal(a.sum(dtype='d'), a.astype('d').sum())
1680
1681 def test_ufunc_casting_out(self):
1682 a = np.array(1.0, dtype=np.float32)

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
astypeMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected