LUdekomposition
LU dekomposition, also known as LU decomposition, is a factorization of a square matrix A into the product of a lower triangular matrix L and an upper triangular matrix U. In many formulations a permutation matrix P is included to account for row exchanges, giving PA = LU. When L is constrained to have unit diagonal, the form is often called the Doolittle decomposition; if U is constrained to have unit diagonal, it is referred to as the Crout form.
Existence and variants: An LU decomposition with partial pivoting (PA = LU) exists for all square matrices
Computation: LU factors are obtained via Gaussian elimination. The multipliers used at each elimination step form
Applications: The primary use is solving linear systems A x = b by forward and backward substitution.
Numerical considerations: Partial pivoting provides better numerical stability. The typical computational cost is O(n^3) operations for