Vishal Rana | 9 Feb 16:42
Picon
Gravatar

Utility function to find array items are in ascending order

Hi,


Is there any utility function to find if values in the array are in ascending or descending order.

Example: 
arr = [1, 2, 4, 6] should return true
arr2 = [1, 0, 2, -2] should return false

Thanks
Vishal
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion <at> scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Gmane