check if all elements in numpy array are equal python code example Example: check if numpy arrays are equal (A==B).all()