![]() |
VOOZH | about |
In linear algebra, a matrix decomposition or matrix factorization is a factorization of a matrix into a product of matrices. There are many different matrix decompositions. One of them is Cholesky Decomposition.
The Cholesky decomposition or Cholesky factorization is a decomposition of a Hermitian, positive-definite matrix into the product of a lower triangular matrix and its conjugate transpose. The Cholesky decomposition is roughly twice as efficient as the LU decomposition for solving systems of linear equations.
The Cholesky decomposition of a Hermitian positive-definite matrix A is a decomposition of the form A = [L][L]T, where L is a real lower triangular matrix with positive diagonal entries, and LT denotes the conjugate transpose of L.
Every Hermitian positive-definite matrix (and thus also every real-valued symmetric positive-definite matrix) has a unique Cholesky decomposition.
Every symmetric, positive definite matrix A can be decomposed into a product of a unique lower triangular matrix L and its transpose: A = L LT
The following formulas are obtained by solving above lower triangular matrix and its transpose. These are the basis of Cholesky Decomposition Algorithm :
Example :
Input :
Output :
Below is the implementation of Cholesky Decomposition:
2 0 0 6 1 0 -8 5 3 2 6 -8 0 1 5 0 0 3
Time Complexity: O(n^3) as 3 nested for loops from 0 to n-1 are being used.
Auxiliary Space: O(n^2) to store the values of the lower triangular matrix.