Thu Apr 17 05:22:55 CDT 2008
On Thu, Apr 17, 2008 at 5:18 AM, wilson <email@example.com> wrote:
> i have a 1 dimensional array of floats that i want to sort in
> descending order.i did as follows
> from numpy import tolist,array,sort
> y=array([......]) #may be 1000 items
> now rl is a 1 dim array sorted in descending order.
> but i am looking for a better,compact way to do this.can someone help?
rl = sort(y)[::-1]
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion