---
title: "ClikaRT::ops::fmod"
sidebar_label: "fmod"
description: "Elementwise remainder with the sign of the DIVIDEND, i.e. ops::mod with ModMode::C. 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>

## fmod() {#fmod}

<div class="api-signature">

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

</div>

Elementwise remainder with the sign of the DIVIDEND, i.e. [`ops::mod`](./mod.md#mod) with [`ModMode::C`](./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 1545

</div>
