Skip to main content

//clika-runtime/io.clika.runtime/Ops/indexCopyInPlace

indexCopyInPlace

[common]
fun indexCopyInPlace(self: Tensor, dim: Long, indices: Tensor, src: Tensor): Tensor

indexCopyInPlace(self: Tensor, dim: Long, indices: Tensor, src: Tensor): the index_copy_ operator. 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. a cache slice, reaches its base buffer; aliases observe the write). Returns self under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling. Writes through self and returns it, so calls chain.