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

Method test_reduce

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

Source from the content-addressed store, hash-verified

44 np.dtype([(('name', 'label'), np.int32, 3)])
45
46 def test_reduce(self):
47 # Ticket #40
48 assert_almost_equal(np.add.reduce([1., .5], dtype=None), 1.5)
49
50 def test_zeros_order(self):
51 # Ticket #43

Callers

nothing calls this directly

Calls 2

assert_almost_equalFunction · 0.90
reduceMethod · 0.45

Tested by

no test coverage detected