Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ test_nonzero
Method
test_nonzero
numpy/ma/tests/test_old_ma.py:776–779 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
774
assert_(amask.min(1)[0].mask)
775
776
def
test_nonzero(self):
777
for
t in
"?bhilqpBHILQPfdgFDGO"
:
778
x = array([1, 0, 2, 0], mask=[0, 0, 1, 1])
779
assert_(eq(nonzero(x), [0]))
780
781
782
class
TestArrayMethods:
Callers
nothing calls this directly
Calls
4
array
Function · 0.90
assert_
Function · 0.90
eq
Function · 0.85
nonzero
Function · 0.50
Tested by
no test coverage detected