ij2ijv_i: Transform Repeated Matrix Indexes

Description Usage Arguments Value

View source: R/RcppExports.R

Description

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)

Usage

1
ij2ijv_i(ir, jc)

Arguments

ir

An integer vector, row indexes

jc

An integer vector, column indexes

Value

A list with fields i, j and iv


multbxxc documentation built on Nov. 15, 2019, 5:10 p.m.