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