From: Francesc A. <fa...@ca...> - 2006-09-19 17:42:04
|
A Dimarts 19 Setembre 2006 19:21, Charles R Harris va escriure: > On 9/19/06, Francesc Altet <fa...@ca...> wrote: > > A Dimarts 19 Setembre 2006 07:18, Charles R Harris va escriure: > > > I note that argsort also produces indexes that are hard to use in the > > > ndim>1 case. > > > > Perhaps it is worth to mention here that I've always liked to have a > > sort() > > and argsort() functionality merged in one shot function (or method). > > Having > > both separated implies two sorts, while if I'd have such a combo > > available, > > the resulting operation would take quite less time. > > Do you want both the indexes and index sorted array returned, or just sort > the array using indexes, i.e., something like > > a.sort(kind=3D"quicksort", method=3D"indirect") Uh, I don't understand what do you mean by "sort the array using indexes",= =20 sorry. What I'd like is to get the indexes and the sorted array returned. Or, anot= her=20 option could be getting the sorted indexes returned and a sort of the array= =20 done in-place (which is surely faster).=20 Regards, =2D-=20 >0,0< Francesc Altet =C2=A0 =C2=A0 http://www.carabos.com/ V V C=C3=A1rabos Coop. V. =C2=A0=C2=A0Enjoy Data "-" |