Re: Sorting array



Chris Hulan wrote:
the list.sort method seems to do exactly what you want?

Unless your array() method is creating a custom array object with
different sort functionality than list?

Presumably he is using numpy arrays.

--
Robert Kern

"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

.



Relevant Pages

  • Re: concatenate Numeric
    ... Robert Kern skrev: ... It applies the binary ufunc along the given axis of the array (the ... array package instead of Numeric, that in numpy, arrays have methods to do ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)
  • Re: Sorting array
    ... Robert Kern wrote: ... I'm working with numerical array and I'm a little lost on a particular ... not just misnaming lists. ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)
  • Re: Slicing wrapped numpy arrays
    ... Robert Kern wrote: ... I have created a class that wraps a numpy array of custom objects. ... Instead of making Map.__init__generate the map array from the dimensions, it should just take a preconstructed map array. ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)
  • Re: arrays in lists
    ... I have a list of arrays and want to find an array with list.index. ... The truth value of an array with more than one element is ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)
  • Re: numpy : efficient sum computations
    ... broadcast to a single shape ... numpy that takes some getting used to, ... array([[0, 6], ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)