Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/lib/tests/test_arraysetops.py:37–38 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
35
# See gh-11772
36
class
Test:
37
def
__array__(self):
38
return
np.arange(3)
39
40
a = Test()
41
res = intersect1d(a, a)
Callers
1
test
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected