---
title: "ClikaRT::ops::isclose"
sidebar_label: "isclose"
description: "Elementwise approximate equality, the elementwise map behind ops::allclose, same formula and defaults (rtol 1e-5, atol 1e-8, equal_nan false). the broadcast-shaped Bool mask."
---

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

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

## isclose() {#isclose}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`isclose`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `input`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `other`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`double` `rtol` `=` `1e-5`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`double` `atol` `=` `1e-8`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`bool` `equal_nan` `=` `false`<br />
)

</div>

Elementwise approximate equality, the elementwise map behind [`ops::allclose`](./allclose.md#allclose), same formula and defaults (`rtol` `1e-5`, `atol` `1e-8`, `equal_nan` `false`).

**Returns:** the broadcast-shaped `Bool` mask.

**Throws**

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

<div class="api-declared">

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

</div>
