---
title: "ClikaRT::ops::mod_"
sidebar_label: "mod_"
description: "In-place mod: writes the remainders through x. ClikaRT::Error as the value form."
---

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

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

## mod\_() {#mod_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`mod_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ScalarOrTensor`](../ScalarOrTensor.md) `other`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ModMode`](./index.md#ModMode) `mode` `=` [`ModMode::Python`](./index.md#ModMode)<br />
)

</div>

In-place [`mod`](./mod.md#mod): writes the remainders through `x`.

**Throws**

- `ClikaRT::Error`: as the value form.

<div class="api-declared">

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

</div>
