matches: Match index in sparse tensor

Description Usage Arguments

View source: R/sptensor-utils.r

Description

Matches a given index to the index of a non-zero value in a sparse tensor. Returns the index if there is match. Returns 0 if there is no match. Returns NA if the index is out of bounds.

Usage

1
matches(idx, x)

Arguments

idx

index

x

sptensor


tensorr documentation built on May 2, 2019, 3:26 a.m.