---
title: "ClikaRT::ops::put_"
sidebar_label: "put_"
description: "In-place put: writes (or accumulates) through self at flat positions; same arguments and error conditions as put(). A view input writes through its base storage."
---

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

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

## put\_() {#put_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`put_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `index`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `source`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`bool` `accumulate` `=` `false`<br />
)

</div>

In-place [`put`](./put.md#put): writes (or accumulates) through `self` at flat positions; same arguments and error conditions as [`put()`](./put.md#put). A view input writes through its base storage. Returns `self` under the value surface, [`Result`](../Result.md)`<void>` under the [`Result`](../Result.md) surface; [`CLIKART_CHECK`](../../index.md#CLIKART_CHECK) is the mode-stable spelling.

<div class="api-declared">

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

</div>
