Dot
computes products of vectors, matrices, and tensors.
Note: the Dot
operator has the attribute Flat
(associative property) but not Orderless
(commutative property).
See:
- Wikipedia - Matrix multiplication
- YouTube - Matrix multiplication as composition | Essence of linear algebra, chapter 4
Examples
Scalar product of vectors:
Product of matrices and vectors:
Matrix product:
Wrong dimensions print an error message:
Dot: Tensors {{a,b},{c,d}} and {{x,y}} have incompatible shapes.
Related terms
Flat, MatrixPower, Orderless, Times
Implementation status
- ✅ - full supported