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

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 15 23:56:58 CET 2014


Steven D'Aprano wrote:
> or
> 
>     Row_Vector @ Matrix @ Matrix
> 
> personally I've never come across the second case except in 
> schoolbook exercises.

It turns up sometimes in quantum mechanics, at least when
doing the algebra. I don't know whether people who do
QM calculations numerically ever do it that way, though.
Flipping it around would be easy enough if it were more
efficient.

-- 
Greg


More information about the Python-ideas mailing list