isclose

odl.isclose(x, y, rtol=1e-05, atol=1e-08, equal_nan=False)

Returns a boolean array where two arrays are element-wise equal within a tolerance. Note: This is not a Python Array API method, but it happens to work in Numpy and Pytorch.