[Python-ideas] [RFC] draft PEP: Dedicated infix operators for matrix multiplication and matrix power

Antoine Pitrou solipsis at pitrou.net
Sat Mar 15 01:09:44 CET 2014


On Sat, 15 Mar 2014 12:55:38 +1300
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Antoine Pitrou wrote:
> 
> > It depends how the vectors are layed out (horizontal @ vertical or
> > vertical @ horizontal).
> 
> The definition of @ in the proposal is such that two
> 1D arrays is interpreted as horizontal @ vertical.

Really? That should be up to the third-party library implementing the @
operator for its types, not to the language itself: Python _suggests_
an use case for @, it doesn't mandate it (especially as there's no
appropriate data type in the stdlib).

Regards

Antoine.




More information about the Python-ideas mailing list