cscMatrix-class {Matrix} | R Documentation |
The cscMatrix
class is a class of sparse matrices in
the compressed, sparse, column-oriented format. In this
implementation the non-zero elements in the columns are sorted into
increasing row order.
Objects can be created by calls of the form new("cscMatrix", ...)
.
p
:"integer"
of pointers, one
for each column, to the initial (zero-based) index of elements in
the column.i
:"integer"
of length nnzero
(number of non-zero elements). These are the row numbers for
each non-zero element in the matrix.x
:"numeric"
- the non-zero
elements of the matrix.nrow
:"integer"
- the number of
rows in the matrix.signature(from = "matrix", to = "cscMatrix")
signature(from = "cscMatrix", to = "matrix")
signature(from = "cscMatrix", to = "tripletMatrix")
signature(x = "cscMatrix", y = "missing")
returns t(x) %*% x
as an sscMatrix
object.signature(x = "cscMatrix", y = "matrix")
: ... signature(x = "cscMatrix", y = "numeric")
: ... signature(x = "cscMatrix")
: returns the diagonal
of x
signature(x = "cscMatrix")
: returns the dimensions
of x
signature(x = "cscMatrix")
: plots an image of
x
using the levelplot
function
sscMatrix-class
, tscMatrix-class