[Numpy-discussion] @ operator
Charles R Harris
charlesr.harris at gmail.com
Tue Sep 9 15:52:19 EDT 2014
I'm in the midst of implementing the '@' operator (PEP 465), and there are
some behaviors that are unspecified by the PEP.
1. Should the operator accept array_like for one of the arguments?
2. Does it need to handle __numpy_ufunc__, or will __array_priority__
3. Do we want PyArray_Matmul in the numpy API?
4. Should a matmul function be supplied by the multiarray module?
If 3 and 4 are wanted, should they use the __numpy_ufunc__ machinery, or
will __array_priority__ serve?
Note that the type number operators, __add__ and such, currently use
__numpy_ufunc__ in combination with __array_priority__, this in addition to
the fact that they are by default using ufuncs that do the same. I'd rather
that the __*__ operators simply rely on __array_priority__.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion