---
title: "ClikaRT::ops::remainder"
sidebar_label: "remainder"
description: "Elementwise remainder with the sign of the DIVISOR, i.e. ops::mod with ModMode::Python. Broadcasts and promotes as add. the broadcast-shaped remainders."
---

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

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

## remainder() {#remainder}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`remainder`**([`Tensor`](../Tensor.md) `input`, [`ScalarOrTensor`](../ScalarOrTensor.md) `other`)

</div>

Elementwise remainder with the sign of the DIVISOR, i.e. [`ops::mod`](./mod.md#mod) with [`ModMode::Python`](./index.md#ModMode). Broadcasts and promotes as [`add`](./add.md#add).

**Returns:** the broadcast-shaped remainders.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) when the operand shapes are not broadcast-compatible.

<div class="api-declared">

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

</div>
