ij2ijv_i: Transform Repeated Matrix Indexes

View source: R/RcppExports.R

ij2ijv_iR Documentation

Transform Repeated Matrix Indexes

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

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 June 27, 2024, 1:06 a.m.