Skip to main content

ClikaRT::ops::isclose

function

isclose()

Tensor isclose(
    Tensor a,
    Tensor b,
    double rtol = 1e-5,
    double atol = 1e-8,
    bool equal_nan = false
)

Elementwise approximate equality, the elementwise map behind ops::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.

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