Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array_wrap__
Method
__array_wrap__
numpy/core/tests/test_umath.py:198–199 ·
view source on GitHub ↗
(self, arr, context)
Source
from the content-addressed store, hash-verified
196
return
np.asarray(arr).view(cls).copy()
197
198
def
__array_wrap__(self, arr, context):
199
return
arr.view(type(self))
200
201
for
subok in (True, False):
202
a = ArrayWrap([0.5])
Callers
nothing calls this directly
Calls
1
view
Method · 0.45
Tested by
no test coverage detected