4.49 min read
The Entry Perspective: Dot Products
The computational formula for matrix multiplication: the entry of is the dot product of row of with column of : .
This is the "two-finger rule" — point one finger at row of and the other at column of , multiply corresponding entries, and sum. Slide fingers to compute each entry.
While this formula is less geometric than the column perspective, it is essential for computation and for understanding why the time complexity is : there are entries to compute, each requiring a dot product of length .
Formal View
Theorem 4.4 (Entry Form)
For with , :
where is row of and is column of .
Remark 4.4 — Complexity
Computing naively requires multiplications. For square matrices, this is . Strassen's algorithm achieves ; current theoretical best is .
Why This Matters
The entry formula is the basis for all numerical linear algebra implementations.
- BLAS (Basic Linear Algebra Subprograms) implements this formula with SIMD optimizations
- GPU matrix multiplication runs the entry formula in massively parallel fashion
- Understanding cost helps design algorithms that avoid recomputing products
Quiz
Question 1
For with and , the entry is computed as:
Common Mistakes
- Using the wrong row/column pairing — is row of dotted with column of .
- Forgetting to sum over the inner index from 1 to .