numpy.isclose()
numpy.isclose
-
numpy.isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False)
[source] -
Returns a boolean array where two arrays are element-wise equal within a tolerance.
The tolerance values are positive, typically very small numbers. The relative difference (
rtol
* abs(b
)) and the absolute differenceatol
are added together to compare against the absolute difference betweena
andb
.Parameters: a, b