Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ test_nonzero
Method
test_nonzero
numpy/ma/tests/test_old_ma.py:839–842 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
837
assert_(amask.min(1)[0].mask)
838
839
def
test_nonzero(self):
840
for
t in
"?bhilqpBHILQPfdgFDGO"
:
841
x = array([1, 0, 2, 0], mask=[0, 0, 1, 1])
842
assert_(eq(nonzero(x), [0]))
843
844
845
class
TestArrayMethods:
Callers
nothing calls this directly
Calls
4
array
Function · 0.90
assert_
Function · 0.90
eq
Function · 0.85
nonzero
Function · 0.85
Tested by
no test coverage detected