dgTMatrix-class

0th

Percentile

Sparse matrices in triplet form

The "dgTMatrix" class is the class of sparse matrices stored as (possibly redundant) triplets.

Keywords
classes, algebra
Note

Triplet matrices are a convenient form in which to construct sparse matrices after which they can be coerced to dgCMatrix objects.

Objects from the Class

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

See Also

dgCMatrix-class

Aliases
  • dgTMatrix-class
  • +,dgTMatrix,dgTMatrix-method
  • coerce,dgTMatrix,dgCMatrix-method
  • coerce,dgTMatrix,dgeMatrix-method
  • coerce,dgTMatrix,dsCMatrix-method
  • coerce,dgTMatrix,matrix-method
  • coerce,dgeMatrix,dgTMatrix-method
  • coerce,matrix,dgTMatrix-method
  • crossprod,dgTMatrix,missing-method
  • crossprod,dgTMatrix,matrix-method
  • crossprod,dgTMatrix,numeric-method
  • image,dgTMatrix-method
  • kronecker,dgTMatrix,dgTMatrix-method
  • t,dgTMatrix-method
Examples
m <- Matrix(1:28, nrow = 4)
##FIXME: m[c()...] <- 0
(mT <- as(m, "dgTMatrix"))

mT[1,]
mT[4, drop = FALSE]
Documentation reproduced from package Matrix, version 0.99-3, License: GPL version 2 or later. This R package includes code from the Metis package and from NIST. This code is covered by separate copyrights; see the file Copyrights for details. This R package includes code from the University of Florida sparse matrix library maintained by Tim Davis. All sections of that code are covered by the GPL or LGPL licenses. See the directory UFsparse for details.

Community examples

Looks like there are no examples yet.