RsparseMatrix-class {Matrix}R Documentation

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form

Description

The "RsparseMatrix" class is the virtual class of all sparse matrices coded in sorted compressed row-oriented form. Since it is a virtual class, no objects may be created from it. See showClass("RsparseMatrix") for its subclasses.

Slots

j:
Object of class "integer" of length nnzero (number of non-zero elements). These are the row numbers for each non-zero element in the matrix.
p:
Object of class "integer" of pointers, one for each row, to the initial (zero-based) index of elements in the row.
Dim, Dimnames:
inherited from the superclass, see sparseMatrix-class.

Extends

Class "sparseMatrix", directly. Class "Matrix", by class "sparseMatrix".

Methods

NO methods are defined currently, since we rather use the CsparseMatrix-class in Matrix.

See Also

its superclass, sparseMatrix-class, and, e.g., dgRMatrix-class for the links to other classes.

Examples

showClass("RsparseMatrix")

[Package Matrix version 0.995-8 Index]