Math Playground
Algebra

Matrix multiplication

Row times column — a rule that's everywhere from graphics to neural nets.

To multiply A (m×n) by B (n×p): each entry of AB is the dot product of a row of A with a column of B.

The inner dimensions must match: (m×n)(n×p) = m×p. Order matters — AB ≠ BA in general.