
Last chance! 50% off unlimited learning
Sale ends in
dtRMatrix
class is a class of triangular, sparse
matrices in the compressed, row-oriented format. In this
implementation the non-zero elements in the rows are sorted into
increasing row order. Objects can be created by calls of the form new("dtRMatrix", ...)
.
"dgRMatrix"
, directly.
Class "dsparseMatrix"
, by class "dgRMatrix"
.
Class "dMatrix"
, by class "dgRMatrix"
.
Class "sparseMatrix"
, by class "dgRMatrix"
.
Class "Matrix"
, by class "dgRMatrix"
.dgCMatrix-class
, dgTMatrix-class
,
dgeMatrix-class
m0 <- new("dtRMatrix")
## FIXME: show() fails
m2 <- new("dtRMatrix", x = 1:4, Dim = as.integer(c(2,2)))
str(m2)
if(FALSE)# FIXME: missing coerce
str(m3 <- as(Matrix(diag(2)), "dtRMatrix"))
Run the code above in your browser using DataLab