NumPy · Function
np.allclose
Checks whether two numeric arrays are close element by element within relative and absolute tolerances. It returns one True or False value.
Last updated
Syntax
numpy.allclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
numpy.isclosenumpy.allnumpy.anynumpy.equal