matches: Match index in sparse tensor

Description Usage Arguments

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


zamorarr/tensorr documentation built on May 4, 2019, 9:08 p.m.