Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ test_noaxis
Method
test_noaxis
numpy/matrixlib/tests/test_defmatrix.py:178–181 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
176
assert_(A[0, 0] == mA[0, 0])
177
178
def
test_noaxis(self):
179
A = matrix([[1, 0], [0, 1]])
180
assert_(A.sum() == matrix(2))
181
assert_(A.mean() == matrix(0.5))
182
183
def
test_repr(self):
184
A = matrix([[1, 0], [0, 1]])
Callers
nothing calls this directly
Calls
4
matrix
Class · 0.90
assert_
Function · 0.90
sum
Method · 0.45
mean
Method · 0.45
Tested by
no test coverage detected