---
title: "ClikaRT::ops::index_copy_"
sidebar_label: "index_copy_"
description: "In-place index_copy: self[.., indices[i], ..] = src[.., i, ..]; same arguments and error conditions as index_copy(). Writes through self's storage (a strided view, e.g."
---

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

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

## index\_copy\_() {#index_copy_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`index_copy_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`int64_t` `dim`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `indices`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `src`<br />
)

</div>

In-place [`index_copy`](./index_copy.md#index_copy): `self[.., indices[i], ..] = src[.., i, ..]`; same arguments and error conditions as [`index_copy()`](./index_copy.md#index_copy). Writes through `self`'s storage (a strided view, e.g. a cache slice, reaches its base buffer; aliases observe the write). 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 2544

</div>
