Learn R Programming

tensorr (version 0.1.1)

extract_sptensor: Extract indices from a sparse tensor

Description

Extracts indices from a sparse tensor and returns as a new tensor. Can also drop dimensions of the tensor that have size 1.

Usage

extract_sptensor(x, i, j, ..., drop = FALSE)

Arguments

x

sptensor

drop

drop dimensions of size 1?

idxmat

matrix of indices requested