ak.almost_equal#
Defined in awkward.operations.ak_almost_equal on line 22.
- ak.almost_equal(left, right, *, rtol: float = 1e-05, atol: float = 1e-08, dtype_exact: bool = True, check_parameters: bool = True, check_regular: bool = True, check_named_axis: bool = True)#
- Parameters:
left – Array-like data (anything
ak.to_layoutrecognizes).right – Array-like data (anything
ak.to_layoutrecognizes).rtol – the relative tolerance parameter (see below).
atol – the absolute tolerance parameter (see below).
dtype_exact – whether the dtypes must be exactly the same, or just the same family.
check_parameters – whether to compare parameters.
check_regular – whether to consider ragged and regular dimensions as unequal.
check_named_axis – bool (default=True) whether to consider named axes as unequal.
Return True if the two array-like arguments are considered equal for the given options. Otherwise, return False.
The relative difference (
rtol * abs(b)) and the absolute differenceatolare added together to compare against the absolute difference betweenleftandright.TypeTracer arrays are not supported, as there is very little information to be compared.