match_ij: Fast Match for Matrix Indexes

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

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

Usage

1
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

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

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