Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ A
Class
A
numpy/_core/tests/test_umath.py:3325–3329 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3323
# test fix for bug #826:
3324
3325
class
A(np.ndarray):
3326
__array_priority__ = 10
3327
3328
def
__new__(cls):
3329
return
np.asarray(1.0,
'float64'
).view(cls).copy()
3330
3331
a = A()
3332
x = np.float64(1) * a
Callers
12
test_priority_with_scalar
Method · 0.70
test_priority
Method · 0.70
test_failing_wrap
Method · 0.70
test_none_wrap
Method · 0.70
test_array_too_many_args
Method · 0.70
test_ufunc_override
Method · 0.70
test_ufunc_override_mro
Method · 0.70
test_ufunc_override_methods
Method · 0.70
test_ufunc_override_out
Method · 0.70
test_ufunc_override_exception
Method · 0.70
test_ufunc_override_not_implemented
Method · 0.70
test_gufunc_override
Method · 0.70
Calls
no outgoing calls
Tested by
12
test_priority_with_scalar
Method · 0.56
test_priority
Method · 0.56
test_failing_wrap
Method · 0.56
test_none_wrap
Method · 0.56
test_array_too_many_args
Method · 0.56
test_ufunc_override
Method · 0.56
test_ufunc_override_mro
Method · 0.56
test_ufunc_override_methods
Method · 0.56
test_ufunc_override_out
Method · 0.56
test_ufunc_override_exception
Method · 0.56
test_ufunc_override_not_implemented
Method · 0.56
test_gufunc_override
Method · 0.56