| dgRMatrix-class {Matrix} | R Documentation |
The dgRMatrix class is a class of sparse numeric
matrices in the compressed, sparse, row-oriented format. In this
implementation the non-zero elements in the rows are sorted into
increasing column order.
Note: Currently, the column-oriented sparse classes, e.g.,
dgCMatrix, are preferred and better supported in
the Matrix package.
Objects can be created by calls of the form new("dgRMatrix", ...).
j:"integer" of length nnzero
(number of non-zero elements). These are the column numbers for
each non-zero element in the matrix.p:"integer" of pointers, one
for each row, to the initial (zero-based) index of elements in
the row.x:"numeric" - the non-zero
elements of the matrix.Dim:"integer" - the dimensions
of the matrix.signature(from = "matrix", to = "dgRMatrix")signature(from = "dgRMatrix", to = "matrix")signature(from = "dgRMatrix", to = "dgTMatrix")signature(x = "dgRMatrix"): returns the diagonal
of xsignature(x = "dgRMatrix"): returns the dimensions
of xsignature(x = "dgRMatrix"): plots an image of
x using the levelplot function
the dgCMatrix class.