MCPcopy
hub / github.com/numpy/numpy / test_noaxis

Method test_noaxis

numpy/matrixlib/tests/test_defmatrix.py:183–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181 assert_(A[0, 0] == mA[0, 0])
182
183 def test_noaxis(self):
184 A = matrix([[1, 0], [0, 1]])
185 assert_(A.sum() == matrix(2))
186 assert_(A.mean() == matrix(0.5))
187
188 def test_repr(self):
189 A = matrix([[1, 0], [0, 1]])

Callers

nothing calls this directly

Calls 4

matrixClass · 0.90
assert_Function · 0.90
sumMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected