Index Ai Academy
Glossary · Phase 2 · Math, when you need it

Matrix multiplication

Also written: matmul

Combining two tables of numbers by taking dot products of rows with columns. It is most of the arithmetic inside a neural network.

Try it now

Three nested loops: pick a row i of A and a column j of B, then add up the products along k. C[0][0] = 1×5 + 2×7 = 19.

Learn it properly

Matrix multiplication · Many dot products at once: what a neural network layer computes. About 30 minutes.

Create a free account See what's in the lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write