---
title: "ClikaRT::ops::floor_divide"
sidebar_label: "floor_divide"
description: "Elementwise floor(a / other), i.e. ops::div with RoundingMode::Floor. Broadcasts and promotes as add. the broadcast-shaped floored quotient."
---

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

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

## floor\_divide() {#floor_divide}

<div class="api-signature">

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

</div>

Elementwise [`floor`](./floor.md#floor)`(a / other)`, i.e. [`ops::div`](./div.md#div) with [`RoundingMode::Floor`](./index.md#RoundingMode). Broadcasts and promotes as [`add`](./add.md#add).

**Returns:** the broadcast-shaped floored quotient.

**Throws**

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

<div class="api-declared">

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

</div>
