---
title: "cumsumInPlace"
sidebar_label: "cumsumInPlace"
description: "Kotlin binding reference: cumsumInPlace."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[cumsumInPlace](cumsumInPlace.md)

# cumsumInPlace

[common]\
fun [cumsumInPlace](cumsumInPlace.md)(self: [Tensor](../Tensor/index.md), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), dtype: [DType](../DType/index.md) = DType.UNDEFINED): [Tensor](../Tensor/index.md)

`cumsumInPlace(self: Tensor, dim: Long, dtype: DType = DType.UNDEFINED)`: the `cumsum_` operator. In-place `cumsum`: rewrites `self` with its inclusive prefix sums along `dim` and returns it 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.