MCPcopy Create free account
hub / github.com/numpy/numpy / __array_ufunc__

Method __array_ufunc__

numpy/core/tests/test_umath.py:3222–3223  ·  view source on GitHub ↗
(self, func, method, *inputs, **kwargs)

Source from the content-addressed store, hash-verified

3220 # check override works even with instance with high priority.
3221 class A:
3222 def __array_ufunc__(self, func, method, *inputs, **kwargs):
3223 return self, func, method, inputs, kwargs
3224
3225 class MyNDArray(np.ndarray):
3226 __array_priority__ = 100

Callers 4

__array_ufunc__Method · 0.45
__array_ufunc__Method · 0.45

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected