ij2ijv_i | R Documentation |
Transforms a couple of index vectors ir and jc (ij of a sparse matrix)
with possibly repeated values into sparse indexes i,j and a vector of 1d indexes of non zero values.
The response can be then used for repeated creation of sparse
matrices with the same pattern by calling iv2v()
ir and jc are supposed to be sorted in increasing order, column-wise (ic runs first)
ij2ijv_i(ir, jc)
ir |
An integer vector, row indexes |
jc |
An integer vector, column indexes |
A list with fields i, j and iv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.