Learn R Programming

SparseM (version 0.67)

matrix.csr-class: Class "matrix.csr"

Description

A new class for sparse matrices stored in compressed sparse row format

Arguments

Objects from the Class

Objects can be created by calls of the form new("matrix.csr", ...). and coerced from various other formats. Coercion of integer scalars and vectors into identity matrices and diagonal matrices respectively is accomplished by as(x,"matrix.diag.csr") which generates an object that has all the rights and responsibilties of the matrix.csr class. The default matrix.csr object is a scalar (1 by 1) matrix with element 0.

See Also

matrix.csc-class