Foundations of Linear Algebra Vectors and Norms A vector x ∈ R n \mathbf{x} \in \mathbb{R}^n x ∈ R n represents a column tuple:
x = [ x 1 x 2 ⋮ x n ] \mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{bmatrix} x = ⎣ ⎢ ⎢ ⎢ ⎢ ⎡ x 1 x 2 ⋮ x n ⎦ ⎥ ⎥ ⎥ ⎥ ⎤ Inner Product and Orthogonality The standard Euclidean inner product is defined as:
⟨ x , y ⟩ = x T y = ∑ i = 1 n x i y i \langle \mathbf{x}, \mathbf{y} \rangle = \mathbf{x}^T \mathbf{y} = \sum_{i=1}^n x_i y_i ⟨ x , y ⟩ = x T y = i = 1 ∑ n x i y i The Cauchy-Schwarz inequality bounds the inner product:
∣ x T y ∣ ≤ ∥ x ∥ 2 ∥ y ∥ 2 |\mathbf{x}^T \mathbf{y}| \le \Vert \mathbf{x} \Vert_2 \Vert \mathbf{y} \Vert_2 ∣ x T y ∣ ≤ ∥ x ∥ 2 ∥ y ∥ 2 with equality if and only if x \mathbf{x} x and y \mathbf{y} y are linearly dependent. Two vectors are orthogonal (x ⊥ y \mathbf{x} \perp \mathbf{y} x ⊥ y ) when x T y = 0 \mathbf{x}^T \mathbf{y} = 0 x T y = 0 .
Vector Norms For x ∈ R n \mathbf{x} \in \mathbb{R}^n x ∈ R n , the standard p p p -norms are:
L 1 L_1 L 1 Norm : ∥ x ∥ 1 = ∑ i = 1 n ∣ x i ∣ \Vert \mathbf{x} \Vert_1 = \sum_{i=1}^n |x_i| ∥ x ∥ 1 = ∑ i = 1 n ∣ x i ∣ L 2 L_2 L 2 Norm : ∥ x ∥ 2 = x T x = ∑ i = 1 n x i 2 \Vert \mathbf{x} \Vert_2 = \sqrt{\mathbf{x}^T \mathbf{x}} = \sqrt{\sum_{i=1}^n x_i^2} ∥ x ∥ 2 = x T x = ∑ i = 1 n x i 2 L ∞ L_\infty L ∞ Norm : ∥ x ∥ ∞ = max 1 ≤ i ≤ n ∣ x i ∣ \Vert \mathbf{x} \Vert_\infty = \max_{1 \le i \le n} |x_i| ∥ x ∥ ∞ = max 1 ≤ i ≤ n ∣ x i ∣ Matrix Properties and Subspaces For A ∈ R m × n \mathbf{A} \in \mathbb{R}^{m \times n} A ∈ R m × n , the matrix defines a linear transformation T : R n → R m T: \mathbb{R}^n \to \mathbb{R}^m T : R n → R m via x ↦ A x \mathbf{x} \mapsto \mathbf{A}\mathbf{x} x ↦ A x .
Fundamental Subspaces Range / Column Space : R ( A ) = { A x ∣ x ∈ R n } ⊆ R m \mathcal{R}(\mathbf{A}) = \{\mathbf{A}\mathbf{x} \mid \mathbf{x} \in \mathbb{R}^n\} \subseteq \mathbb{R}^m R ( A ) = { A x ∣ x ∈ R n } ⊆ R m Kernel / Null Space : N ( A ) = { x ∈ R n ∣ A x = 0 } ⊆ R n \mathcal{N}(\mathbf{A}) = \{\mathbf{x} \in \mathbb{R}^n \mid \mathbf{A}\mathbf{x} = \mathbf{0}\} \subseteq \mathbb{R}^n N ( A ) = { x ∈ R n ∣ A x = 0 } ⊆ R n Row Space : R ( A T ) ⊆ R n \mathcal{R}(\mathbf{A}^T) \subseteq \mathbb{R}^n R ( A T ) ⊆ R n Left Null Space : N ( A T ) ⊆ R m \mathcal{N}(\mathbf{A}^T) \subseteq \mathbb{R}^m N ( A T ) ⊆ R m The subspaces form orthogonal complements under the fundamental theorem of linear algebra:
R ( A ) ⊥ = N ( A T ) , R ( A T ) ⊥ = N ( A ) \mathcal{R}(\mathbf{A})^\perp = \mathcal{N}(\mathbf{A}^T), \quad \mathcal{R}(\mathbf{A}^T)^\perp = \mathcal{N}(\mathbf{A}) R ( A ) ⊥ = N ( A T ) , R ( A T ) ⊥ = N ( A ) The dimensions satisfy the Rank-Nullity Theorem:
rank ( A ) + nullity ( A ) = n \text{rank}(\mathbf{A}) + \text{nullity}(\mathbf{A}) = n rank ( A ) + nullity ( A ) = n Canonical Matrix Classes Class Definition Key Properties Symmetric A = A T \mathbf{A} = \mathbf{A}^T A = A T Real eigenvalues; admitting an orthonormal eigenbasis. Orthogonal Q ∈ R n × n , Q T Q = I \mathbf{Q} \in \mathbb{R}^{n \times n}, \; \mathbf{Q}^T \mathbf{Q} = \mathbf{I} Q ∈ R n × n , Q T Q = I Isometry: ∥ Q x ∥ 2 = ∥ x ∥ 2 \Vert \mathbf{Q}\mathbf{x} \Vert_2 = \Vert \mathbf{x} \Vert_2 ∥ Q x ∥ 2 = ∥ x ∥ 2 ; condition number κ ( Q ) = 1 \kappa(\mathbf{Q}) = 1 κ ( Q ) = 1 . Symmetric Positive Definite (SPD) A = A T , x T A x > 0 ∀ x ≠ 0 \mathbf{A} = \mathbf{A}^T, \; \mathbf{x}^T \mathbf{A} \mathbf{x} \gt 0 \; \forall \mathbf{x} \neq \mathbf{0} A = A T , x T A x > 0 ∀ x = 0 Strictly positive real eigenvalues (λ i > 0 \lambda_i \gt 0 λ i > 0 ); admits unique Cholesky factorization. Unitary (Complex)U ∈ C n × n , U ∗ U = I \mathbf{U} \in \mathbb{C}^{n \times n}, \; \mathbf{U}^* \mathbf{U} = \mathbf{I} U ∈ C n × n , U ∗ U = I Preserves inner products in C n \mathbb{C}^n C n .
Matrix Norms and Conditioning Norms Frobenius Norm :∥ A ∥ F = ∑ i = 1 m ∑ j = 1 n a i j 2 = tr ( A T A ) \Vert \mathbf{A} \Vert_F = \sqrt{\sum_{i=1}^m \sum_{j=1}^n a_{ij}^2} = \sqrt{\text{tr}(\mathbf{A}^T \mathbf{A})} ∥ A ∥ F = i = 1 ∑ m j = 1 ∑ n a i j 2 = tr ( A T A ) Induced 2-Norm (Spectral Norm) :∥ A ∥ 2 = sup x ≠ 0 ∥ A x ∥ 2 ∥ x ∥ 2 = σ max ( A ) \Vert \mathbf{A} \Vert_2 = \sup_{\mathbf{x} \neq \mathbf{0}} \frac{\Vert \mathbf{A}\mathbf{x} \Vert_2}{\Vert \mathbf{x} \Vert_2} = \sigma_{\max}(\mathbf{A}) ∥ A ∥ 2 = x = 0 sup ∥ x ∥ 2 ∥ A x ∥ 2 = σ m a x ( A ) Condition Number For invertible A ∈ R n × n \mathbf{A} \in \mathbb{R}^{n \times n} A ∈ R n × n , the 2-norm condition number is:
κ ( A ) = ∥ A ∥ 2 ∥ A − 1 ∥ 2 = σ max ( A ) σ min ( A ) \kappa(\mathbf{A}) = \Vert \mathbf{A} \Vert_2 \Vert \mathbf{A}^{-1} \Vert_2 = \frac{\sigma_{\max}(\mathbf{A})}{\sigma_{\min}(\mathbf{A})} κ ( A ) = ∥ A ∥ 2 ∥ A − 1 ∥ 2 = σ m i n ( A ) σ m a x ( A ) When solving A x = b \mathbf{A}\mathbf{x} = \mathbf{b} A x = b , relative perturbations in data propagate according to:
∥ δ x ∥ ∥ x ∥ ≤ κ ( A ) ( ∥ δ A ∥ ∥ A ∥ + ∥ δ b ∥ ∥ b ∥ ) \frac{\Vert \delta \mathbf{x} \Vert}{\Vert \mathbf{x} \Vert} \le \kappa(\mathbf{A}) \left( \frac{\Vert \delta \mathbf{A} \Vert}{\Vert \mathbf{A} \Vert} + \frac{\Vert \delta \mathbf{b} \Vert}{\Vert \mathbf{b} \Vert} \right) ∥ x ∥ ∥ δ x ∥ ≤ κ ( A ) ( ∥ A ∥ ∥ δ A ∥ + ∥ b ∥ ∥ δ b ∥ ) BLAS Operational Hierarchy Dense linear algebra software divides computational routines into three BLAS tiers based on operational intensity:
BLAS Tier Signature Example FLOPs Data Movement Arithmetic Intensity (FLOPs/Byte \text{FLOPs/Byte} FLOPs/Byte ) Performance Regime Level 1 y ← α x + y \mathbf{y} \leftarrow \alpha \mathbf{x} + \mathbf{y} y ← α x + y (AXPY)2 n 2n 2 n 3 n × sizeof ( T ) 3n \times \text{sizeof}(T) 3 n × sizeof ( T ) ≈ 2 / ( 3 × 4 ) ≈ 0.17 \approx 2 / (3 \times 4) \approx 0.17 ≈ 2 / ( 3 × 4 ) ≈ 0 . 1 7 Memory Bandwidth Bound Level 2 y ← α A x + β y \mathbf{y} \leftarrow \alpha \mathbf{A}\mathbf{x} + \beta \mathbf{y} y ← α A x + β y (GEMV)2 n 2 2n^2 2 n 2 ( n 2 + 2 n ) × sizeof ( T ) (n^2 + 2n) \times \text{sizeof}(T) ( n 2 + 2 n ) × sizeof ( T ) ≈ 2 / sizeof ( T ) ≈ 0.5 \approx 2 / \text{sizeof}(T) \approx 0.5 ≈ 2 / sizeof ( T ) ≈ 0 . 5 Memory Bandwidth Bound Level 3 C ← α A B + β C \mathbf{C} \leftarrow \alpha \mathbf{A}\mathbf{B} + \beta \mathbf{C} C ← α A B + β C (GEMM)2 m n k 2mnk 2 m n k ( m n + m k + n k ) × sizeof ( T ) (mn + mk + nk) \times \text{sizeof}(T) ( m n + m k + n k ) × sizeof ( T ) O ( n ) O(n) O ( n ) with tilingCompute Bound
In Level 3 BLAS, data transferred from main memory (HBM/DRAM) into on-chip cache or registers can be reused O ( n ) O(n) O ( n ) times. This arithmetic reuse is what allows modern GPU matrix execution pipelines (AMD Matrix Core, NVIDIA Tensor Core) to run at sustained theoretical throughput.