A 2×2
×
B 2×2
=
Result 2×2
Matrix A — Rows
2
Matrix A — Columns
2
Sets rows of B automatically
Matrix B — Columns
2
Matrix A
×
Matrix B
=
Result
Compatible — A's columns (2) automatically match B's rows (2).
Step 1 of 4
Row from Matrix A
Column from Matrix B
Click "Visualize Multiplication" to see each result cell explained step by step.
How Matrix Multiplication Works
- Take one row from Matrix A.
- Take one column from Matrix B.
- Multiply each pair of corresponding numbers.
- Add up all the products.
- Place the sum into the matching position of the result matrix.
- Repeat for every row of A against every column of B.
🧠
Why it matters for neural networks: during a forward pass, inputs and activations are repeatedly multiplied by weight matrices — the exact row-by-column operation visualized above, just repeated at a much larger scale.
