Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ test_repr
Method
test_repr
numpy/matrixlib/tests/test_defmatrix.py:183–185 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
181
assert_(A.mean() == matrix(0.5))
182
183
def
test_repr(self):
184
A = matrix([[1, 0], [0, 1]])
185
assert_(repr(A) ==
"matrix([[1, 0],\n [0, 1]])"
)
186
187
def
test_make_bool_matrix_from_str(self):
188
A = matrix(
'True; True; False'
)
Callers
nothing calls this directly
Calls
2
matrix
Class · 0.90
assert_
Function · 0.90
Tested by
no test coverage detected