NLA-lib Explorer

PLU factorization

Definition (PLU factorization). With the row-permutation convention used here, \mathbf{P}\mathbf{A}=\mathbf{L}\mathbf{U}, where \mathbf{P} is a permutation matrix, \mathbf{L} is unit lower triangular, and \mathbf{U} is upper triangular. Pivot-selection rules are implementation choices.

Copy link

Implementations

Mathematical guarantees

Permutation conventions, existence conditions, and solve guarantees will be curated here.

Results

Theorem (Partial pivoting).

Every square matrix \mathbf{A} over an RCLike field has a row-permuted LU factorization \mathbf{L}\mathbf{U} in which the entries of \mathbf{L} are at most one in absolute value and the entries of \mathbf{U} exceed those of \mathbf{A} by a factor at most 2^{\lvert n \rvert - 1}: if \lvert \mathbf{A}_{i,j} \rvert \le M for all i, j, then \lvert \mathbf{L}_{i,j} \rvert \le 1 and \lvert \mathbf{U}_{i,j} \rvert \le 2^{\lvert n \rvert - 1} M. [GolubVanLoan2013, §3.4.5]; [Higham2002, §9.3].

General form: sizes are index types

Lean statement and details
NLAlib.exists_perm_isLU_norm_le.{u_3, u_4} {n : Type u_3} [LinearOrder n] [Fintype n] {𝕜 : Type u_4}
  [RCLike 𝕜] (A : Matrix n n 𝕜) {M : ℝ} (hM : ∀ (i j : n), ‖A i j‖ ≤ M) :
  ∃ σ L U,
    IsLU (A.submatrix (⇑σ) id) L U ∧
      (∀ (i j : n), ‖L i j‖ ≤ 1) ∧ ∀ (i j : n), ‖U i j‖ ≤ 2 ^ (Fintype.card n - 1) * M

Full source on GitHub

Copy link

Theorem (Sharpness of partial pivoting growth).

In every positive dimension n+1, a matrix \mathbf{A} with entries of modulus at most one produces a last pivot of modulus 2^n: \mathbf{U} = \mathsf{luUpper}(\mathbf{B}), where \mathbf{B} permutes the rows of \mathbf{A} by \mathsf{luPartialPivotPerm}(\mathbf{A}). Wilkinson's example needs no exchanges under the first-maximum tie rule. [TrefethenBau1997, Lecture 22].

Lean statement and details
NLAlib.exists_norm_luUpper_apply_last_eq_two_pow.{u_3} (𝕜 : Type u_3) [RCLike 𝕜] (n : ℕ) :
  ∃ A,
    (∀ (i j : Fin (n + 1)), ‖A i j‖ ≤ 1) ∧
      ‖luUpper (A.submatrix (⇑(luPartialPivotPerm A)) id) (Fin.last n) (Fin.last n)‖ = 2 ^ n

Full source on GitHub

Copy link

Theorem (Partial pivoting succeeds exactly for nonsingular inputs).

All diagonal entries of \mathbf{U} = \mathsf{luUpper}(\mathbf{B}) are nonzero exactly when \mathbf{A} is invertible, where \mathbf{B} permutes its rows by \mathsf{luPartialPivotPerm}(\mathbf{A}). [TrefethenBau1997, Lecture 21]; [GolubVanLoan2013, Theorem 3.4.1].

Lean statement and details
NLAlib.forall_luUpper_apply_self_ne_zero_iff_isUnit_det.{u_2} {𝕜 : Type u_2} [RCLike 𝕜] {n : ℕ}
  (A : Matrix (Fin n) (Fin n) 𝕜) :
  (∀ (i : Fin n), luUpper (A.submatrix (⇑(luPartialPivotPerm A)) id) i i ≠ 0) ↔ IsUnit A.det

Full source on GitHub

Copy link

Mathematical background

Appears under these tasks

Family