TsparseMatrix-class: Class "TsparseMatrix" of Sparse Matrices in Triplet Form
Description
The "TsparseMatrix" class is the virtual class of
all sparse matrices coded in triplet form. Since it is a virtual class,
no objects may be created from it. See
showClass("TsparseMatrix") for its subclasses.
Arguments
Slots
Extends
Class "sparseMatrix", directly.
Class "Matrix", by class "sparseMatrix".
showClass("TsparseMatrix")
## or just the subclasses' namesnames(getClass("TsparseMatrix")@subclasses)
T3 <- spMatrix(3,4, i=c(1,3:1), j=c(2,4:2), x=1:4)
T3 # only 3 non-zero entries, 5 = 1+4 !