![]()
![]()
![]()
This method is illustrated only to show that the Crout method can be modified to obtain computed values similar to the Cholesky factorization.
A more efficient method is the Cholesky subroutine for matrices that are real, symmetric and positive definite.
Consider the matrix product A = LU where L is lower triangular and U is upper triangular.
Use the rule for finding the element
to successively compute the entries in U and
L.
![[Graphics:../Images/dol_gr_21.gif]](../Images/dol_gr_21.gif)
Compute the first row of U and the first column of L.
![[Graphics:../Images/dol_gr_22.gif]](../Images/dol_gr_22.gif)
Compute the second row of U and the second column of L.
![[Graphics:../Images/dol_gr_23.gif]](../Images/dol_gr_23.gif)
Compute the third row of U and the third column of L.
![[Graphics:../Images/dol_gr_24.gif]](../Images/dol_gr_24.gif)
Compute the k-th row of U and the k-th column of L.
![[Graphics:../Images/dol_gr_25.gif]](../Images/dol_gr_25.gif)
The above derivation would lead rise to the following PreCholesky subroutine.
![[Graphics:../Images/dol_gr_26.gif]](../Images/dol_gr_26.gif)
Implementation of the PreCholesky subroutine will produce an
LU factorization where
.
Exercise 1 (c). Find the A = LU factorization for the following matrix using the PreCholesky subroutine.
Solution.
But what would be the purpose of a having this third method ?
In the special case that A is known to be real, symmetric and positive definite there is an advantage to the Cholesky method. If A is real, symmetric and positive definite then U is the transpose of L and both do not need to be computed. Hence there will be a tremendous saving of computing effort if this property is considered. BUT the Cholesky can only be used if A is real, symmetric and positive definite.
(c) John H. Mathews