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
drop
drop dimensions of size 1?
idxmat
matrix of indices requested