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

2010-02-09 Thread Vishal Rana
Thanks On Tue, Feb 9, 2010 at 7:51 AM, Brent Pedersen wrote: > On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana wrote: > > 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 = [

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

2010-02-09 Thread Keith Goodman
On Tue, Feb 9, 2010 at 7:51 AM, Brent Pedersen wrote: > On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana wrote: >> 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] s

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

2010-02-09 Thread Brent Pedersen
On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana wrote: > 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 > > __

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

2010-02-09 Thread Keith Goodman
On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana wrote: > 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 I don't know if it is fas

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

2010-02-09 Thread Vishal Rana
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-Discuss