Mathematics · Level 2 of 5
Matrix Multiplication
A composition operation whose entries are row-column dot products.
Inner dimensions must match, and swapping operands usually changes the result.
Listen to the definition and example
Audio transcript
Matrix Multiplication. A composition operation whose entries are row-column dot products. Inner dimensions must match, and swapping operands usually changes the result. For example: A batch matrix with shape 32 by 10 multiplies a weight matrix of shape 10 by 4.
Explore this concept
A useful analogy
Combining two stages of a linear transformation into one.
Why it matters
This notation connects model equations to the calculations implemented in code.
Technical detail
If A is m×n and B is n×p, AB is m×p with (AB)_ij = Σ_k A_ik B_kj.
Common misconception
Matrix multiplication is not elementwise multiplication and is generally not commutative.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.