Skip to main content

ClikaRT::ops::fmod

function

fmod()

Tensor fmod(Tensor a, ScalarOrTensor other)

Elementwise remainder with the sign of the DIVIDEND, i.e. ops::mod with ModMode::C. Broadcasts and promotes as add.

Returns: the broadcast-shaped remainders.

Throws

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

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