Displaying 2 results from an estimated 2 matches for "rsparse".
Did you mean:
sparse
2016 Apr 20
0
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
...r
> 5 x 5 sparse Matrix of class "dgTMatrix"
> [1,] 1 1 1 . .
> [2,] . . . . .
> [3,] . . . . .
> [4,] . . . . .
> [5,] . . . . .
The reason for the above behavior has been
a) efficiency. All the subassignment ( `[<-` ) methods for
"RsparseMatrix" objects (of which "dsRMatrix" is a special case)
are implemented via TsparseMatrix.
b) because of the general attitude that Csparse (and Tsparse to
some extent) are well supported in Matrix,
and e.g. further operations on Rsparse matrices would *again*
go via T* o...
2016 Apr 19
2
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
Using the Matrix package, how can I create a row-oriented sparse
Matrix from scratch populated with some data? By default a
column-oriented one is created and I'm aware of the note that the
package is optimized for column-oriented ones, but I'm only interested
in using it for holding my sparse row-oriented data and doing basic
subsetting by rows (even using drop=FALSE).
Here is what I