Rev 3175 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{Cholesky-class}\docType{class}\alias{Cholesky-class}\alias{pCholesky-class}\alias{BunchKaufman-class}\alias{pBunchKaufman-class}\title{Cholesky and Bunch-Kaufman Decompositions}\description{The \code{"Cholesky"} class is the class of Choleskydecompositions of positive-semidefinite, real matrices. The\code{"BunchKaufman"} class is the class of Bunch-Kaufmandecompositions of symmetric, real matrices. The \code{"pCholesky"}and \code{"pBunchKaufman"} classes are their \emph{\bold{p}acked}storage versions.}\section{Objects from the Class}{Objects can be created by calls of the form \code{new("Cholesky",...)} or \code{new("BunchKaufman", ...)}or by calls of the form \code{chol(pm)} where \code{pm} inherits fromthe \code{"dpoMatrix"} class or as a side-effect of other functionsapplied to \code{"dpoMatrix"} objects (see \code{\linkS4class{dpoMatrix}}).}\section{Slots}{A Cholesky decomposition is basically a triangular matrix extendingthe \code{"dtrMatrix"} class.\describe{\item{\code{uplo}:}{inherited from the \code{"dtrMatrix"} class.}\item{\code{diag}:}{inherited from the \code{"dtrMatrix"} class.}\item{\code{x}:}{inherited from the \code{"dtrMatrix"} class.}\item{\code{Dim}:}{inherited from the \code{"dtrMatrix"} class.}\item{\code{Dimnames}:}{inherited from the \code{"dtrMatrix"} class.}}A Bunch-Kaufman decomposition also extends the \code{"dtrMatrix"}class and has a \code{perm} slot representing a permutation matrix.The packed versions extend the \code{"dtpMatrix"} class.}\section{Extends}{Class \code{"dtrMatrix"}, directly.Class \code{"dgeMatrix"}, by class \code{"dtrMatrix"}.Class \code{"Matrix"}, by class \code{"dtrMatrix"}.}\section{Methods}{No methods defined with class "Cholesky" in the signature.}\seealso{Classes \code{\linkS4class{dtrMatrix}}, \code{\linkS4class{dpoMatrix}};function \code{\link{chol}}.}\examples{(sm <- as(as(Matrix(diag(5) + 1), "dsyMatrix"), "dspMatrix"))signif(csm <- chol(sm), 4)(pm <- crossprod(Matrix(rnorm(18), nrow = 6, ncol = 3)))(ch <- chol(pm))if (toupper(ch@uplo) == "U") # which is TRUEcrossprod(ch)stopifnot(all.equal(as(crossprod(ch), "matrix"),as(pm, "matrix"), tol=1e-14))}\keyword{classes}\keyword{algebra}