Use of __numpy_ufunc__() Use of __numpy_ufunc__() numpy numpy

Use of __numpy_ufunc__()


This functionality has finally been released in Numpy 1.13 under a new name:

__array_ufunc__ added

This is the renamed and redesigned __numpy_ufunc__. Any class, ndarray subclass or not, can define this method or set it to None in order to override the behavior of NumPy’s ufuncs. This works quite similarly to Python’s __mul__ and other binary operation routines. See the documentation for a more detailed description of the implementation and behavior of this new option. The API is provisional, we do not yet guarantee backward compatibility as modifications may be made pending feedback. See the NEP and documentation for more details.

This should resolve this issue.