Hi Matti,

In the original implementation of what was then __numpy_ufunc__, we
had overrides for both `np.dot` and `np.matmul` that worked exactly as
your option (2), but we decided in the end that those really are not
true ufuncs and we should not include ufunc mimics in the mix as
someone using `__array_ufunc__` should be able to count on being
passed a ufunc, including all its properties. Perhaps this needs
revisiting, and we should have some UFuncABC... But my own feeling
remains that matmul is close enough to a (set of) gufunc that making
it fit the gufunc mold is the way to go...

All the best,

Marten
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to