Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/random/tests/test_regression.py:144–145 ·
view source on GitHub ↗
(self, dtype=None, copy=None)
Source
from the content-addressed store, hash-verified
142
a = np.arange(5)
143
144
def
__array__(self, dtype=None, copy=None):
145
return
self.a
146
147
rng = np.random.RandomState(1)
148
m = M()
Callers
1
test_permutation_subclass
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected