(self, other)
| 17 | def _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 |
searching dependent graphs…