matrix.csr-class {SparseM} | R Documentation |
A new class for sparse matrices stored in compressed sparse row format
Objects can be created by calls of the form new("matrix.csr", ...)
.
and coerced from various other formats. Coercion of integer scalars
and vectors into identity matrices and diagonal matrices respectively
is accomplished by as(x,"matrix.diag.csr")
which generates an
object that has all the rights and responsibilties of the matrix.csr class.
The default matrix.csr object is a scalar (1 by 1) matrix with element 0.
ra
:numeric
, a real array of nnz elements containing the non-zero
elements of A, stored in row order. Thus, if i<j, all elements
of row i precede elements from row j. The order of elements
within the rows is immaterial.ja
:integer
, an integer array of nnz elements containing the column
indices of the elements stored in `ra'.ia
:integer
, an integer array of n+1 elements containing pointers to
the beginning of each row in the arrays `ra' and `ja'. Thus
`ia[i]' indicates the position in the arrays `ra' and `ja'
where the ith row begins. The last, (n+1)st, element of `ia'
indicates where the n+1 row would start, if it existed.
dimension
:integer
, dimension of the matrix signature(x = "matrix.csr", y = "matrix.csr")
: ... signature(x = "matrix.csr", y = "matrix")
: ... signature(x = "matrix.csr", y = "numeric")
: ... signature(x = "matrix", y = "matrix.csr")
: ... signature(x = "numeric", y = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(a = "matrix.csr")
: ... signature(x = "matrix.csr")
: ... signature(x = "matrix.csr")
: ...