---
title: "ClikaRT::ops::cumprod_"
sidebar_label: "cumprod_"
description: "In-place cumprod: rewrites self with its inclusive prefix products 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>

## cumprod\_() {#cumprod_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`cumprod_`**(<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 [`cumprod`](./cumprod.md#cumprod): rewrites `self` with its inclusive prefix products 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 [`cumprod`](./cumprod.md#cumprod).

<div class="api-declared">

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

</div>
