Rev 4104 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{dsRMatrix-class}\title{Symmetric Sparse Compressed Row Matrices}\docType{class}\alias{dsRMatrix-class}%\description{The \code{dsRMatrix} class is a class of symmetric, sparsematrices in the compressed, row-oriented format. In thisimplementation the non-zero elements in the rows are sorted intoincreasing row order.}\section{Objects from the Class}{These \code{"..RMatrix"} classes are currently still mostly unimplemented!Objects can be created by calls of the form \code{new("dsRMatrix", ...)}or \code{new("dtRMatrix", ...)}.}\section{Slots}{\describe{\item{\code{uplo}:}{A character object indicating if the uppertriangle (\code{"U"} or \code{"u"}) or the lower triangle(\code{"L"} or \code{"l"}) is stored. At present only the lowertriangle form is allowed.}%% FIXME: this was by copy-paste-edit: is it ok?\item{\code{j}:}{Object of class \code{"integer"} of length\code{nnzero} (number of non-zero elements). These are the rownumbers for each non-zero element in the matrix.}\item{\code{p}:}{Object of class \code{"integer"} of pointers, onefor each row, to the initial (zero-based) index of elements inthe row. (Only present in the \code{dsRMatrix} class.)}\item{\code{factors}:}{Object of class \code{"list"} - a listof factorizations of the matrix. }\item{\code{x}:}{Object of class \code{"numeric"} - the non-zeroelements of the matrix.}\item{\code{Dim}:}{Object of class \code{"integer"} - the dimensionsof the matrix - must be an integer vector with exactly twonon-negative values.}\item{\code{Dimnames}:}{List of length two, see \code{\link{Matrix}}.}}}\section{Extends}{Class \code{"dgRMatrix"}, directly.Class \code{"dsparseMatrix"}, by class \code{"dgRMatrix"}.Class \code{"dMatrix"}, by class \code{"dgRMatrix"}.Class \code{"sparseMatrix"}, by class \code{"dgRMatrix"}.Class \code{"Matrix"}, by class \code{"dgRMatrix"}.Class \code{"Matrix"}, by class \code{"dgRMatrix"}.}\section{Methods}{No methods currently with class \code{"dsRMatrix"} in the signature.% \describe{% \item{solve}{\code{signature(a = "dsRMatrix", b = "matrix")}: Solve% a linear system of equations defined by \code{x} using a Cholesky% decomposition.}% ......% \item{coerce}{\code{signature(from = "dsRMatrix", to = "dgTMatrix")}}% ......% }}%\references{}%\author{}%\note{}\seealso{the classes \code{\linkS4class{dgCMatrix}},\code{\linkS4class{dgTMatrix}}, and \code{\linkS4class{dgeMatrix}}.}\examples{m0 <- new("dsRMatrix")## FIXME: print() failsm2 <- new("dsRMatrix", x = 0+1:4, Dim = as.integer(c(2,2)))## FIXME: print() failsstr(m2)if(FALSE)## FIXMEstr(m3 <- as(Matrix(diag(2)), "dsRMatrix"))}\keyword{classes}\keyword{algebra}