MCPcopy
hub / github.com/numpy/numpy / func

Function func

numpy/lib/mixins.py:19–22  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

17def _binary_method(ufunc, name):
18 """Implement a forward binary method with a ufunc, e.g., __add__."""
19 def func(self, other):
20 if _disables_array_ufunc(other):
21 return NotImplemented
22 return ufunc(self, other)
23 func.__name__ = f'__{name}__'
24 return func
25

Callers 15

piecewiseFunction · 0.70
_get_ufunc_and_otypesMethod · 0.70
_funcMethod · 0.70
_vectorize_callMethod · 0.70
_ureduceFunction · 0.70
apply_along_fieldsFunction · 0.70
apply_over_axesFunction · 0.70
_scalarfuncMethod · 0.70
updateMethod · 0.70
test_one_arg_funcsMethod · 0.50
test_two_arg_funcsMethod · 0.50

Calls 1

_disables_array_ufuncFunction · 0.85

Tested by 15

test_one_arg_funcsMethod · 0.40
test_two_arg_funcsMethod · 0.40
test_three_arg_funcsMethod · 0.40
test_one_arg_funcsMethod · 0.40
test_two_arg_funcsMethod · 0.40
test_integersMethod · 0.40
test_three_arg_funcsMethod · 0.40
test_one_arg_funcsMethod · 0.40
test_two_arg_funcsMethod · 0.40
test_randintMethod · 0.40
test_three_arg_funcsMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…