OK you can use np.isclose for this:
In [250]: np.isclose(a,b) Out[250]: array([[ True], [ True]], dtype=bool)
np.isclose accepts relative tolerance and absolute tolerance. They have default values: rtol=1e-05 , atol=1e-08 respectively
Edchum
source share