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

Method test_large_float_sum

numpy/core/tests/test_regression.py:1699–1701  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1697 assert_(np.all(a))
1698
1699 def test_large_float_sum(self):
1700 a = np.arange(10000, dtype='f')
1701 assert_equal(a.sum(dtype='d'), a.astype('d').sum())
1702
1703 def test_ufunc_casting_out(self):
1704 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