dsRMatrix-class {Matrix} | R Documentation |
The dsRMatrix
class is a class of symmetric, sparse
matrices in the compressed, row-oriented format. In this
implementation the non-zero elements in the rows are sorted into
increasing row order.
These classes are currently still mostly unimplemented!
Objects can be created by calls of the form new("dsRMatrix", ...)
or new("dtRMatrix", ...)
.
uplo
:"U"
or "u"
) or the lower triangle
("L"
or "l"
) is stored. At present only the lower
triangle form is allowed.j
:"integer"
of length
nnzero
(number of non-zero elements). These are the row
numbers for each non-zero element in the matrix.p
:"integer"
of pointers, one
for each row, to the initial (zero-based) index of elements in
the row. (Only present in the dsRMatrix
class.)factors
:"list"
- a list
of factorizations of the matrix. x
:"numeric"
- the non-zero
elements of the matrix.Dim
:"integer"
- the dimensions
of the matrix - must be an integer vector with exactly two
non-negative values.Dimnames
:Matrix
.
Class "dgRMatrix"
, directly.
Class "dsparseMatrix"
, by class "dgRMatrix"
.
Class "dMatrix"
, by class "dgRMatrix"
.
Class "sparseMatrix"
, by class "dgRMatrix"
.
Class "Matrix"
, by class "dgRMatrix"
.
Class "Matrix"
, by class "dgRMatrix"
.
No methods currently with class "dsRMatrix"
in the signature.
the classes dgCMatrix
,
dgTMatrix
, and dgeMatrix
.
m0 <- new("dsRMatrix") ## FIXME: print() fails m2 <- new("dsRMatrix", x = 0+1:4, Dim = as.integer(c(2,2))) ## FIXME: print() fails str(m2) if(FALSE)## FIXME str(m3 <- as(Matrix(diag(2)), "dsRMatrix"))