Re:PEP 465 – Dedicated infix operators for matrix multiplica...
by caretcaret on Sunday March 16, 2014 @12:53PM
(#7410123)
Why not overload the already-defined * * ? Matrix multiplication is used much more than matrix exponentation (which can be delegated to methods), and * * is already right associative.
[ Parent
| on HN ]
Re:PEP 465 – Dedicated infix operators for matrix multiplica...
by shoyer on Sunday March 16, 2014 @01:38PM
(#7410350)
Because already means element-wise power. The reason we need a new operator (@) for matrix multiplication is precisely so we can all the same operators for arrays that we already use for scalars.