
22 Jan
2009
22 Jan
'09
2:15 a.m.
Hi all,
what is the best way to check if the entries (integers) of an array are stored in ascending order ?
Nils

2:32 a.m.
On Thu, 22 Jan 2009 11:23:43 +0100 Robert Cimrman cimrman3@ntc.zcu.cz wrote:
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.
Thank you !
Nils
5427
Age (days ago)
5427
Last active (days ago)
2 comments
2 participants
participants (2)
-
Nils Wagner
-
Robert Cimrman