-
Notifications
You must be signed in to change notification settings - Fork 46
cholesky
Fabian Kindermann edited this page Apr 1, 2021
·
4 revisions
subroutine cholesky(a, l)
This subroutine provides a Cholesky decomposition of a symmetric matrix , meaning a matrix for which . The resulting matrix is a lower triangular matrix with . Note that the matrices and need to be square matrices and all have the same size.
-
real*8 :: a(:, :)
The square matrix that should be decomposed.
-
real*8 :: l(:, :)
The lower triangular decomposition matrix. Must have the same size asa
.
- Parts of this routine were copied and adapted from:
- Press, W.H., Teukolsky, S.A., Vetterling, W.T. & Flannery, B.P. (1992). Numerical Recipes in Fortran 90: The Art of Parallel Scientific Computing, 2nd edition. Cambridge: Cambridge Univeristy Press.
- For further reading refer to:
- Golub, G.H. & Van Loan, C.F. (2013). Matrix Computations, 4th ed. Baltimore: Johns Hopkins University Press.