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

Method test_reduce

numpy/ma/tests/test_old_ma.py:759–764  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

757 assert_(eqmask(ur.mask, mr.mask))
758
759 def test_reduce(self):
760 a = self.d[0]
761 assert_(not alltrue(a, axis=0))
762 assert_(sometrue(a, axis=0))
763 assert_equal(sum(a[:3], axis=0), 0)
764 assert_equal(product(a, axis=0), 0)
765
766 def test_minmax(self):
767 a = arange(1, 13).reshape(3, 4)

Callers

nothing calls this directly

Calls 6

assert_Function · 0.90
assert_equalFunction · 0.90
alltrueFunction · 0.85
sometrueFunction · 0.85
productFunction · 0.85
sumFunction · 0.50

Tested by

no test coverage detected