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

Method test_cumprod

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

Source from the content-addressed store, hash-verified

839 assert_equal(mXXswapped.shape, (2, 2, 3, 3))
840
841 def test_cumprod(self):
842 (x, X, XX, m, mx, mX, mXX,) = self.d
843 mXcp = mX.cumprod(0)
844 assert_(eq(mXcp._data, mX.filled(1).cumprod(0)))
845 mXcp = mX.cumprod(1)
846 assert_(eq(mXcp._data, mX.filled(1).cumprod(1)))
847
848 def test_cumsum(self):
849 (x, X, XX, m, mx, mX, mXX,) = self.d

Callers

nothing calls this directly

Calls 4

assert_Function · 0.90
eqFunction · 0.85
cumprodMethod · 0.80
filledMethod · 0.45

Tested by

no test coverage detected