Matrix (version 0.99-3)

dsCMatrix-class: Numeric Symmetric Sparse (column compressed) Matrices

Description

The dsCMatrix class is a class of symmetric, sparse numeric matrices in the compressed, column-oriented format. In this implementation the non-zero elements in the columns are sorted into increasing row order. The dsTMatrix class is the class of symmetric, sparse numeric matrices in triplet format.

Arguments

Objects from the Class

Objects can be created by calls of the form new("dsCMatrix", ...) or new("dsTMatrix", ...)

Extends

Class "dgCMatrix", directly.

See Also

dgCMatrix-class, dgTMatrix-class, dgeMatrix-class

Examples

Run this code
## First a "dgCMatrix"
mm <- Matrix(toeplitz(c(10, 0, 1, 0, 3)), sparse = TRUE)
mT <- as(mm, "dgTMatrix")
(symM <- as(mT, "dsCMatrix"))
str(symM)

Run the code above in your browser using DataCamp Workspace