Matrix (version 0.99-3)

dsRMatrix-class: Symmetric Sparse Compressed Row Matrices

Description

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.

Arguments

Objects from the Class

These classes are currently still mostly unimplemented!

Objects can be created by calls of the form new("dsRMatrix", ...) or new("dtRMatrix", ...).

Extends

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".

Methods

No methods currently with class "dsRMatrix" in the signature.

See Also

dgCMatrix-class, dgTMatrix-class, dgeMatrix-class

Examples

Run this code
m0 <- new("dsRMatrix")
## FIXME: print() fails
m2 <- new("dsRMatrix", x = 1:4, Dim = as.integer(c(2,2)))
## FIXME: print() fails
str(m2)
if(FALSE)## FIXME
str(m3 <- as(Matrix(diag(2)), "dsRMatrix"))

Run the code above in your browser using DataCamp Workspace