CsparseMatrix-class {Matrix}R Documentation

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

Description

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

Slots

i:
Object of class "integer" of length nnzero (number of non-zero elements). These are the 0-based row numbers for each non-zero element in the matrix, i.e., i must be in 0:(nrow(.)-1)
.
p:
Object of class "integer" for providing pointers, one for each column, to the initial (zero-based) index of elements in the column. .@p is of length ncol(.) + 1, with p[1] == 0 and p[length(p)] == nnzero, such that in fact, diff(.@p + 1) are the number of non-zero elements for each column.
factors, Dim, Dimnames:
inherited from the superclass, see the sparseMatrix class.

Extends

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

Methods

Arith
signature(e1 = "CsparseMatrix", e2 = "numeric"): ...
Arith
signature(e1 = "numeric", e2 = "CsparseMatrix"): ...
Math
signature(x = "CsparseMatrix"): ...
band
signature(x = "CsparseMatrix"): ...
-
signature(e1 = "CsparseMatrix", e2 = "numeric"): ...
-
signature(e1 = "numeric", e2 = "CsparseMatrix"): ...
[<-
signature(x = "CsparseMatrix", i = "index", j = "missing", value = "replValue"): ...
[<-
signature(x = "CsparseMatrix", i = "index", j = "index", value = "replValue"): ...
[<-
signature(x = "CsparseMatrix", i = "missing", j = "index", value = "replValue"): ...
%*%
signature(x = "CsparseMatrix", y = "CsparseMatrix"): ...
%*%
signature(x = "CsparseMatrix", y = "denseMatrix"): ...
%*%
signature(x = "CsparseMatrix", y = "matrix"): ...
+
signature(e1 = "CsparseMatrix", e2 = "numeric"): ...
+
signature(e1 = "numeric", e2 = "CsparseMatrix"): ...
coerce
signature(from = "CsparseMatrix", to = "TsparseMatrix"): ...
coerce
signature(from = "CsparseMatrix", to = "denseMatrix"): ...
coerce
signature(from = "CsparseMatrix", to = "matrix"): ...
coerce
signature(from = "CsparseMatrix", to = "lsparseMatrix"): ...
coerce
signature(from = "CsparseMatrix", to = "nsparseMatrix"): ...
coerce
signature(from = "TsparseMatrix", to = "CsparseMatrix"): ...
coerce
signature(from = "denseMatrix", to = "CsparseMatrix"): ...
crossprod
signature(x = "CsparseMatrix", y = "CsparseMatrix"): ...
crossprod
signature(x = "CsparseMatrix", y = "missing"): ...
crossprod
signature(x = "CsparseMatrix", y = "dgeMatrix"): ...
crossprod
signature(x = "CsparseMatrix", y = "matrix"): ...
diag
signature(x = "CsparseMatrix"): ...
gamma
signature(x = "CsparseMatrix"): ...
lgamma
signature(x = "CsparseMatrix"): ...
log
signature(x = "CsparseMatrix"): ...
t
signature(x = "CsparseMatrix"): ...
tcrossprod
signature(x = "CsparseMatrix", y = "CsparseMatrix"): ...
tcrossprod
signature(x = "CsparseMatrix", y = "missing"): ...
tril
signature(x = "CsparseMatrix"): ...
triu
signature(x = "CsparseMatrix"): ...

See Also

colSums, kronecker, and other such methods with own help pages.

Further, the super class of CsparseMatrix, sparseMatrix, and, e.g., class dgCMatrix for the links to other classes.

Examples

showClass("CsparseMatrix")

[Package Matrix version 0.999375-4 Index]