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

Method test_cumsum

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

Source from the content-addressed store, hash-verified

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
850 mXcp = mX.cumsum(0)
851 assert_(eq(mXcp._data, mX.filled(0).cumsum(0)))
852 mXcp = mX.cumsum(1)
853 assert_(eq(mXcp._data, mX.filled(0).cumsum(1)))
854
855 def test_varstd(self):
856 (x, X, XX, m, mx, mX, mXX,) = self.d

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected