---
title: "ClikaRT::ops::index_put"
sidebar_label: "index_put"
description: "A copy of input with value written (or accumulated) at the indexed positions, the out-of-place input[indices] = value."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## index\_put() {#index_put}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`index_put`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `input`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ClikaRT::Span`](../Span.md)`<const` [`IndexEntry`](./IndexEntry.md)`>` `indices`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ScalarOrTensor`](../ScalarOrTensor.md) `value`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`bool` `accumulate` `=` `false`<br />
)

</div>

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

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 5485

</div>
