✖️ Matrix Multiplication Visualizer

Watch torch.matmul happen cell by cell — a row of A and a column of B slide together, multiply, and drop their sum into the result.

📋 How To Use This Lab
  1. Set shapes for Matrix A and Matrix B with the sliders — A's columns must match B's rows.
  2. Press Step ▶ to compute one result cell at a time, or Play All ▶▶ to auto-run every cell.
  3. Watch the highlighted row of A and column of B slide into the middle and multiply pairwise.
  4. Drag Animation Speed to control how fast each step plays.
Matrix A Matrix B Dotty — press Step to begin — Result C = A @ B
🤖 DOTTYSet two shapes that fit together, then hit Step — I'll multiply row by column, one cell at a time.
🧑‍🏫 PROF. TORCHEach output cell C[i,j] is the dot product of row i of A and column j of B — that's the entire rule of matmul.

🎛️ Matrix Shapes