Skip to main content

ClikaRT::ops::index_put

function

index_put()​

Tensor index_put(
    Tensor input,
    ClikaRT::Span<const IndexEntry> indices,
    ScalarOrTensor value,
    bool accumulate = false
)

A copy of input with value written (or accumulated) at the indexed positions, the out-of-place input[indices] = value.

Declared in ClikaRT/compute/ops.h, line 5367