Skip to main content

Module cholesky

Module cholesky 

Source
Expand description

The Cholesky factorisation A = L Lᵀ of a symmetric positive-definite matrix.

Comparing entries of A = L Lᵀ row by row (the Cholesky-Banachiewicz order) gives each entry of L from those already known:

l_jj = √(a_jj − Σ_{k<j} l_jk²), l_ij = (a_ij − Σ_{k<j} l_ik l_jk) / l_jj for i > j.

It costs half as much as LU, needs no pivoting (the diagonal of a positive-definite matrix dominates), and doubles as a test for positive definiteness: the square root fails exactly when A is not positive definite.

See the book entry Cholesky factorisation.

Functions§

cholesky
The lower Cholesky factor L.