dgCMatrix-class {Matrix} | R Documentation |
The dgCMatrix
class is a class of sparse numeric
matrices in the compressed, sparse, column-oriented format. In this
implementation the non-zero elements in the columns are sorted into
increasing row order. dsCMatrix
is the
“standard” class for sparse numeric matrices in the
Matrix package.
Objects can be created by calls of the form new("dgCMatrix", ...)
or
often more easily via Matrix(*, sparse = TRUE)
.
x
:"numeric"
- the non-zero
elements of the matrix."CsparseMatrix"
.
signature(from = "matrix", to = "dgCMatrix")
signature(from = "dgCMatrix", to = "matrix")
signature(from = "dgCMatrix", to = "dgTMatrix")
signature(x = "dgCMatrix", y = "missing")
returns t(x) %*% x
as an dsCMatrix
object.signature(x = "dgCMatrix", y = "matrix")
: ... signature(x = "dgCMatrix", y = "numeric")
: ... signature(x = "dgCMatrix")
: returns the diagonal
of x
signature(x = "dgCMatrix")
: returns the dimensions
of x
signature(x = "dgCMatrix")
: plots an image of
x
using the levelplot
functionsignature(x = "dgCMatrix")
: computes the LU
decomposition of a square dgCMatrix
object
Classes dsCMatrix
,
dtCMatrix
, lu
(m <- Matrix(c(0,0,2:0), 3,5)) str(m) m[,1]