Matrix Multiplication
Matrix multiplication combines two matrices to produce a new matrix.
The Rule
For , each element is a dot product:
Dimensions
- is , is
- is
- The inner dimensions must match
Four Ways to Multiply
- Row × Column — the standard dot product
- Column picture — = linear combination of ’s columns
- Row picture — each row of = linear combination of ’s rows
- Column × Row — sum of rank-1 matrices
Properties
- Not commutative: (usually)
- Associative:
- Distributive: