Skip to main content

ClikaRT::ops::floor_divide

function

floor_divide()

Tensor floor_divide(Tensor a, ScalarOrTensor other)

Elementwise floor(a / other), i.e. ops::div with RoundingMode::Floor. Broadcasts and promotes as add.

Returns: the broadcast-shaped floored quotient.

Throws

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

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