cscMatrix-class {Matrix}R Documentation

Class "cscMatrix" compressed, sparse, column Matrix

Description

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 from the Class

Objects can be created by calls of the form new("cscMatrix", ...).

Slots

p:
Object of class "integer" of pointers, one for each column, to the initial (zero-based) index of elements in the column.
i:
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.
x:
Object of class "numeric" - the non-zero elements of the matrix.
nrow:
Object of class "integer" - the number of rows in the matrix.

Methods

coerce
signature(from = "matrix", to = "cscMatrix")
coerce
signature(from = "cscMatrix", to = "matrix")
coerce
signature(from = "cscMatrix", to = "cscBlocked")
coerce
signature(from = "cscMatrix", to = "tripletMatrix")
crossprod
signature(x = "cscMatrix", y = "missing") returns t(x) %*% x as an sscMatrix object.
crossprod
signature(x = "cscMatrix", y = "matrix"): ...
crossprod
signature(x = "cscMatrix", y = "numeric"): ...
diag
signature(x = "cscMatrix"): returns the diagonal of x
dim
signature(x = "cscMatrix"): returns the dimensions of x
image
signature(x = "cscMatrix"): plots an image of x using the levelplot function

See Also

sscMatrix-class, tscMatrix-class


[Package Matrix version 0.8-21 Index]