On entry: the
symmetric positive semidefinite matrix
.
If , is stored in .
If , is stored in .
If , the upper triangular part of must be stored and the elements of the array below the diagonal are not referenced.
If , the lower triangular part of must be stored and the elements of the array above the diagonal are not referenced.
On exit: if
, the first
rank rows of the upper triangle of
are overwritten with the nonzero elements of the Cholesky factor
, and the remaining rows of the triangle are destroyed.
If
, the first
rank columns of the lower triangle of
are overwritten with the nonzero elements of the Cholesky factor
, and the remaining columns of the triangle are destroyed.