check if two arrays are equal python code example
Example 1: check if numpy arrays are equal
(A==B).all()
Example 2: np.array_equal
# np.array_equal checks whether two arrays have the same
# shape and all elements values
(A==B).all()
# np.array_equal checks whether two arrays have the same
# shape and all elements values