Skip to main content

NDArray::allclose

public static function allclose(NDArray|array|float|int $a, NDArray|array|float|int $b, float $rtol = 1e-05, float $atol = 1e-08): NDArray;

Checks if all elements in two arrays are approximately equal within a specified tolerance element-wise.