3 ms·
The matrix multiplication operator is not implemented for any standard python data type. The matrix multiplication PEP is actually titled "A dedicated infix op
by jwandborg 11y ago
The matrix multiplication operator is not implemented for any standard python data type.
The matrix multiplication PEP is actually titled "A dedicated infix operator for matrix multiplication", and that's (broadly) the only thing that it provides. Here's the arguments for why the operator should exist: https://www.python.org/dev/peps/pep-0465/#why-should-matrix-multiplication-be-infix https://www.python.org/dev/peps/pep-0465/#why-should-matrix-...
numpy and other libraries might/has/will implement the matrix multiplication infix operator for their array and matrix data types.