np.array_equal(A,B) # test if same shape, same elements values
np.array_equiv(A,B) # test if broadcastable shape, same elements values
np.allclose(A,B,...) # test if same shape, elements have close enough values
import numpy as np
np.array_equal(arr1, arr2)
numpy.array_equal(array1, array2)
True if two arrays have the same shape and elements, False otherwise.
# np.array_equal checks whether two arrays have the same
# shape and all elements values