Rev 6098 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{chol2inv}\title{Inverse from Choleski Decomposition}\usage{chol2inv(x, size=ncol(x))}\alias{chol2inv}\arguments{\item{x}{a matrix. The first \code{nc} columns of theupper triangle contain the Choleski decomposition of thematrix to be inverted.}\item{size}{the number of columns of \code{x} containing thecholeski decomposition.}}\value{This matrix uses the given Choleski decompositionto invert the original positive definite matrix.It returns the inverse of the decomposed matrix.}\references{Dongarra, J. J., J. R. Bunch, C. B. Moler and G. W. Stewart (1978).\emph{LINPACK Users Guide}.Philadelphia:SIAM Publications.}\seealso{\code{\link{chol}}, \code{\link{solve}}.}\examples{cma <- chol(ma <- cbind(1, 1:3, c(1,3,7)))t(cma) \%*\% cma # = maall.equal(diag(3), ma \%*\% chol2inv(cma))}\keyword{algebra}\keyword{array}