Rev 1567 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{dsyMatrix-class}\docType{class}\alias{\%*\%,dgeMatrix,dsyMatrix-method}\alias{\%*\%,dspMatrix,dgeMatrix-method}\alias{\%*\%,dspMatrix,integer-method}\alias{\%*\%,dspMatrix,matrix-method}\alias{\%*\%,dspMatrix,numeric-method}\alias{\%*\%,dsyMatrix,dgeMatrix-method}\alias{coerce,dspMatrix,dgeMatrix-method}\alias{coerce,dspMatrix,dsyMatrix-method}\alias{coerce,dspMatrix,matrix-method}\alias{coerce,dsyMatrix,dgeMatrix-method}\alias{coerce,dsyMatrix,dspMatrix-method}\alias{coerce,dsyMatrix,matrix-method}\alias{dspMatrix-class}\alias{dsyMatrix-class}\alias{norm,dspMatrix,character-method}\alias{norm,dspMatrix,missing-method}\alias{norm,dsyMatrix,character-method}\alias{norm,dsyMatrix,missing-method}\alias{rcond,dspMatrix,character-method}\alias{rcond,dspMatrix,missing-method}\alias{rcond,dsyMatrix,character-method}\alias{rcond,dsyMatrix,missing-method}\alias{solve,dspMatrix,dgeMatrix-method}\alias{solve,dspMatrix,integer-method}\alias{solve,dspMatrix,matrix-method}\alias{solve,dspMatrix,missing-method}\alias{solve,dspMatrix,numeric-method}\alias{solve,dsyMatrix,dgeMatrix-method}\alias{solve,dsyMatrix,matrix-method}\alias{solve,dsyMatrix,missing-method}\alias{t,dspMatrix-method}\alias{t,dsyMatrix-method}\alias{unpack,dspMatrix-method}\title{Symmetric, dense matrices}\description{The \code{"dsyMatrix"} class is the class of symmetric, densematrices in non-packed storage and \code{"dsyMatrix"} is the class ofsymmetric dense matrices in packed storage. Only the upper triangle or the lowertriangle is stored.}\section{Objects from the Class}{Objects can be created by calls of the form \code{new("dsyMatrix", ...)}.}\section{Slots}{\describe{\item{\code{uplo}:}{Object of class \code{"character"}. Must beeither "U", for upper triangular, and "L", for lower triangular.}\item{\code{x}:}{Object of class \code{"numeric"}. The numericvalues that constitute the matrix, stored in column-major order.}\item{\code{Dim}:}{Object of class \code{"integer"}. The dimensionsof the matrix which must be a two-element vector of non-negativeintegers.}\item{\code{rcond}:}{Object of class \code{"numeric"}. A namednumeric vector of reciprocal condition numbers in either the1-norm \code{"O"} or the infinity norm \code{"I"}.}\item{\code{factors}:}{Object of class \code{"list"}. A namedlist of factorizations that have been computed for the matrix.}}}\section{Extends}{Class \code{"dgeMatrix"}, directly.Class \code{"Matrix"}, by class \code{"dgeMatrix"}.}\section{Methods}{\describe{\item{coerce}{\code{signature(from = "dspMatrix", to = "dgeMatrix")}}\item{coerce}{\code{signature(from = "dsyMatrix", to = "dgeMatrix")}}\item{coerce}{\code{signature(from = "dspMatrix", to = "matrix")}}\item{coerce}{\code{signature(from = "dsyMatrix", to = "matrix")}}\item{coerce}{\code{signature(from = "dsyMatrix", to = "dspMatrix")}}\item{coerce}{\code{signature(from = "dspMatrix", to = "dsyMatrix")}}\item{norm}{\code{signature(x = "dspMatrix", type = "character")}}\item{norm}{\code{signature(x = "dsyMatrix", type = "character")}}\item{norm}{\code{signature(x = "dspMatrix", type = "missing")}}\item{norm}{\code{signature(x = "dsyMatrix", type = "missing")}}\item{solve}{\code{signature(a = "dspMatrix", b = "missing")}}\item{solve}{\code{signature(a = "dsyMatrix", b = "missing")}}\item{solve}{\code{signature(a = "dspMatrix", b = "dgeMatrix")}}\item{solve}{\code{signature(a = "dsyMatrix", b = "dgeMatrix")}}\item{solve}{\code{signature(a = "dspMatrix", b = "matrix")}}\item{solve}{\code{signature(a = "dsyMatrix", b = "matrix")}}}}%\references{}%\author{}\seealso{\code{\link{dgeMatrix-class}}, \code{\link{Matrix-class}},\code{\link[base]{solve}}, \code{\link{norm}}, \code{\link{rcond}},\code{\link[base]{t}}}\examples{## Only upper triangular part matters (when uplo == "U" as per default)(sy2 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, NA,32,77)))\dontrun{(c2 <- chol(sy2)) # should try to coerce to dpoMatrix but doesn't}(c2 <- chol(as(sy2, "dpoMatrix")))str(c2)## An example where chol() can't work(sy3 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, -1, 2, -7)))## gives an error in R <= 2.0.0 :validObject(as(sy3, "dpoMatrix"), test=TRUE) # >> is not pos.def.\dontrun{try(chol(sy3)) ## Error: not pos.def}}\keyword{classes}