Definition (LU factorization). An LU factorization has the form \mathbf{A}=\mathbf{L}\mathbf{U}, with \mathbf{L} unit lower triangular and \mathbf{U} upper triangular. The unpivoted method needs conditions ensuring elimination can proceed; such a factorization is not available for every matrix with a fixed row order.
LU factorization
Implementations
Mathematical guarantees
Existence conditions, factorization identities, and solve guarantees will be curated here.
Results
Theorem (A nonsingular matrix has an LU factorization exactly when its leading principal minors are nonzero).
[HornJohnson2013, Corollary 3.5.4].
Lean statement and details
NLAlib.exists_isLU_iff_forall_principalMinor_ne_zero.{u_2, u_3} {K : Type u_2} {n : Type u_3}
[LinearOrder n] [Fintype n] [Field K] [DecidableEq n] [LocallyFiniteOrderBot n] {A : Matrix n n K}
(hA : IsUnit A.det) : (∃ L U, IsLU A L U) ↔ ∀ (i : n), principalMinor A (Finset.Iic i) ≠ 0Theorem (Row inclusion characterizes LU existence).
A square matrix factors as a unit lower triangular matrix times an upper triangular matrix exactly when, for each index i, row i restricted to columns before i lies in the span of the preceding rows on the same columns. This includes singular matrices and empty index types. [HornJohnson2013, Theorem 3.5.3].
Lean statement and details
NLAlib.exists_isLU_iff_forall_mem_span.{u_3, u_4} {ι : Type u_3} {R : Type u_4} [LinearOrder ι]
[Fintype ι] [CommRing R] (A : Matrix ι ι R) :
(∃ L U, IsLU A L U) ↔ ∀ (i : ι), (fun k ↦ A i ↑k) ∈ Submodule.span R (Set.range fun j k ↦ A ↑j ↑k)