Learn R Programming

tensorr (version 0.1.1)

replace_sptensor: Replace values in a sparse tensor

Description

Replaces values in sparse tensor and returns a new sparse tensor.

Usage

replace_sptensor(x, idxmat, value)

Arguments

x

sptensor

idxmat

matrix of indices

value

replacement value(s)