---
title: "ClikaRT::ops::fmax"
sidebar_label: "fmax"
description: "Elementwise IEEE 754 maximum, NaN-IGNORING: where one operand is NaN the other value wins (both NaN gives NaN). For the NaN-propagating law use ops::maximum. Broadcasts and promotes as add."
---

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

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

## fmax() {#fmax}

<div class="api-signature">

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

</div>

Elementwise IEEE 754 maximum, NaN-IGNORING: where one operand is NaN the other value wins (both NaN gives NaN). For the NaN-propagating law use [`ops::maximum`](./maximum.md#maximum). Broadcasts and promotes as [`add`](./add.md#add).

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

**Throws**

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

<div class="api-declared">

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

</div>
