[Numpy-discussion] array manipulation

Robert Cimrman cimrman3 at ntc.zcu.cz
Thu Jan 22 05:23:43 EST 2009


Nils Wagner wrote:
> Hi all,
> 
> what is the best way to check if the entries (integers)
> of an array are stored in ascending order ?

Hi Nils,

Try np.alltrue( ar[1:] > ar[:-1] ).

r.



More information about the NumPy-Discussion mailing list