Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ ArraySubclass
Class
ArraySubclass
numpy/core/tests/test_numeric.py:3494–3495 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3492
3493
def
test_ensure_array(self):
3494
class
ArraySubclass(np.ndarray):
3495
pass
3496
3497
a = ArraySubclass((2, 2))
3498
b = np.require(a, None, [
'E'
])
Callers
2
test_ensure_array
Method · 0.70
test_preserve_subtype
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_ensure_array
Method · 0.56
test_preserve_subtype
Method · 0.56