powered by
Returns the Cholesky square root of the non-singular, symmetric matrix X. The purpose is mainly to demonstrate the algorithm used by Kennedy & Gentle (1980).
X
cholesky(X, tol = sqrt(.Machine$double.eps))
the Cholesky square root of X
a square symmetric matrix
tolerance for checking for 0 pivot
John Fox
Kennedy W.J. Jr, Gentle J.E. (1980). Statistical Computing. Marcel Dekker.
chol for the base R function
chol
gsorth for Gram-Schmidt orthogonalization of a data matrix
gsorth
C <- matrix(c(1,2,3,2,5,6,3,6,10), 3, 3) # nonsingular, symmetric C cholesky(C) cholesky(C) %*% t(cholesky(C)) # check
Run the code above in your browser using DataLab