numpy.array_equal()

numpy.array_equal

numpy.array_equal(a1, a2) [source]

True if two arrays have the same shape and elements, False otherwise.

Parameters:

a1, a2 : array_like

Input arrays.

Returns:

b : bool

Returns True if the arrays are equal.