14 Mar
2014
14 Mar
'14
6:01 p.m.
Le 14/03/14 20:17, Serhiy Storchaka a écrit :
Matrix multiplication is only defined on 2d arrays (matrices). But why not on arbitrary tensors (except scalars)?
The PEP does include a (complicated) definition of "matrix multiplication" for arrays of all ranks. In particular, @-multiplication of rank-1 arrays is the dot product.