bundles / numpy 2.4.3 / numpy / testing / overrides / allows_array_ufunc_override
function
numpy.testing.overrides:allows_array_ufunc_override
source: /numpy/testing/overrides.py :28
Signature
def allows_array_ufunc_override ( func ) Summary
Determine if a function can be overridden via __array_ufunc__
Parameters
func: callableFunction that may be overridable via
__array_ufunc__
Returns
: boolTrueiffuncis overridable via__array_ufunc__andFalseotherwise.
Notes
This function is equivalent to isinstance(func, np.ufunc) and will work correctly for ufuncs defined outside of Numpy.
Aliases
-
numpy.testing.overrides.allows_array_ufunc_override