Skip to main content

ClikaRT::ops::index_put

function

index_put()

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

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

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