match_ij: Fast Match for Matrix Indexes

View source: R/RcppExports.R

match_ijR Documentation

Fast Match for Matrix Indexes

Description

Match ix,jx-couple in ti,tj-table and return their 1-based positions (0 for non matched couples)

Usage

match_ij(ix, jx, ti, tj)

Arguments

ix

An integer vector

jx

An integer vector

ti

An integer vector

tj

An integer vector

Value

An integer vector

Examples

match_ij(1:2, 1:2, 0:4, 0:4)
# [1] 2 3


multbxxc documentation built on June 27, 2024, 1:06 a.m.