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

Method test_cumprod

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

Source from the content-addressed store, hash-verified

904 assert_equal(mXXswapped.shape, (2, 2, 3, 3))
905
906 def test_cumprod(self):
907 mX = self._create_data()[5]
908 mXcp = mX.cumprod(0)
909 assert_(eq(mXcp._data, mX.filled(1).cumprod(0)))
910 mXcp = mX.cumprod(1)
911 assert_(eq(mXcp._data, mX.filled(1).cumprod(1)))
912
913 def test_cumsum(self):
914 mX = self._create_data()[5]

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected