📖 Book · matrix · high
🔢 Matrix multiplication & friends
Naive vs cache-friendly multiply, in-place transpose, and the transpose+reverse rotation — runnable.
Matrix multiplication from the definition to performance: the O(n³) triple loop, why the naive loop order thrashes cache and how i-k-j fixes it (verified equal), plus in-place square transpose and the transpose-then-reverse 90° rotation — all runnable, with Strassen and BLAS as the next steps.
4 chapters▶ runnable code✦ in-depth animation
What this book covers
- 01Why matrix multiply shows up everywhere
- 02Multiply — naive vs cache-friendly, run it
- 03Transpose — in place, run it
- 04Rotate 90° in place — run it
Read it in full — runnable C++ + step-through animations
Every chapter of Matrix multiplication & friends ships complete, editable code you compile and run in the browser, plus the same in-depth animations as the lessons.