Skip to main content

ClikaRT::ops::fmax

function

fmax()

Tensor fmax(Tensor a, Tensor b)

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.

Returns: the broadcast-shaped maxima.

Throws

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

Declared in ClikaRT/compute/ops.h, line 1409