NLA-lib Explorer

The LU factorization

Library · Source module

The LU factorization

NLAlib.IsLU A L U says that \mathbf{A} = \mathbf{L}\mathbf{U} with \mathbf{L} unit lower triangular and \mathbf{U} upper triangular. The factorization of a nonsingular matrix is unique, and exists exactly when the leading principal minors are nonzero; the pivots are ratios of consecutive leading minors. With a row permutation it always exists, and partial pivoting bounds the entries of the factors.

The leading principal minor of order i + 1, the determinant of the block of \mathbf{A} on the indices up to i, is principalMinor A (Finset.Iic i).

Main definitions

* NLAlib.IsLU: the factorization predicate. * NLAlib.luLower, NLAlib.luUpper: the factors computed by elimination without pivoting, for a matrix indexed by Fin n over a field.

Main results

* NLAlib.IsLU.unique, NLAlib.IsLU.det_eq_prod, NLAlib.IsLU.principalMinor_eq_prod. * NLAlib.exists_isLU_iff_forall_principalMinor_ne_zero: existence for nonsingular matrices. * NLAlib.exists_isLU_of_forall_principalMinor_ne_zero_of_le_rank: existence from the leading minors up to the rank. * NLAlib.isLU_luLower_luUpper: elimination computes the factorization. * NLAlib.eq_luLower_mul_luUpper: elimination factors \mathbf{A} when zero pivots have zeros below. * NLAlib.exists_perm_isLU_norm_le: partial pivoting, with the growth bound 2^{n-1}.

Declarations