Returns True if two arrays are element-wise equal within a tolerance.
The tolerance values are positive, typically very small numbers. The relative difference (rtol * b) and the absolute difference (atol) are added together to compare against the absolute difference between a and b.
Parameters: | a, b : array_like
fill_value : boolean, optional
rtol : Relative tolerance
atol : Absolute tolerance
|
---|---|
Returns: | y : bool
|
Notes
If the following equation is element-wise True, then allclose returns True.
absolute(a - b) <= (atol + rtol * absolute(b))
Return True if all elements of a and b are equal subject to given tolerances.