[Numpy-discussion] Utility function to find array items are in ascending order

Vishal Rana ranavishal@gmail....
Tue Feb 9 09:42:29 CST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100209/a4867dd8/attachment.html 


More information about the NumPy-Discussion mailing list