---
title: "ClikaRT::ops::cumsum_"
sidebar_label: "cumsum_"
description: "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."
---

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

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

## cumsum\_() {#cumsum_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`cumsum_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`int64_t` `dim`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`DataType`](../../index.md#DataType) `dtype` `=` [`DataType::Undefined`](../../index.md#DataType)<br />
)

</div>

In-place [`cumsum`](./cumsum.md#cumsum): rewrites `self` with its inclusive prefix sums along `dim` and returns it 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.

**Throws**

- `ClikaRT::Error`: as [`cumsum`](./cumsum.md#cumsum).

<div class="api-declared">

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

</div>
