---
title: "ClikaRT::ops::index_put_"
sidebar_label: "index_put_"
description: "In-place self[indices] = value (or += with accumulate); returns the mutated self so it chains."
---

<!-- 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)`&` `self`,<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>

In-place `self[indices] = value` (or `+=` with `accumulate`); returns the mutated self so it chains.

<div class="api-declared">

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

</div>
