Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/random/tests/test_randomstate_regression.py:146–147 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
144
a = np.arange(5)
145
146
def
__array__(self):
147
return
self.a
148
149
random.seed(1)
150
m = M()
Callers
1
test_permutation_subclass
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected