# dgTMatrix-class

From Matrix v0.99-3
by Douglas Bates

##### Sparse matrices in triplet form

The `"dgTMatrix"`

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

##### 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

##### 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.