ML Notes Mathematics FundamentalsLinear Algebra

Matrix Operations

Math fundamentals note for ML preparation.

Contents

Core Idea

Key Formulas

If A∈Rm×nA\in\mathbb{R}^{m\times n} and B∈Rn×pB\in\mathbb{R}^{n\times p}, then:

AB∈Rm×p,(AB)ij=∑k=1nAikBkjAB\in\mathbb{R}^{m\times p},\quad (AB)_{ij}=\sum_{k=1}^n A_{ik}B_{kj} (AB)⊤=B⊤A⊤(AB)^\top = B^\top A^\top

Practical Notes

Check matrix shapes before multiplication.

Matrix multiplication is not commutative.

Why This Matters for ML

← Back to Blog