From: Francesc A. <fa...@ca...> - 2006-09-19 16:45:58
|
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()= =20 and argsort() functionality merged in one shot function (or method). Having= =20 both separated implies two sorts, while if I'd have such a combo available,= =20 the resulting operation would take quite less time. One can easily stablish kind of a pattern for situations where this could=20 happen: in all the 'arg*()' functions. Perhaps I'm wrong in my count, but=20 there appear to be only three of such functions in NumPy, namely, argmax,=20 argmin and argsort. Adding three additional 'combos' doesn't seem a lot to = my=20 mind, but it can be just 'too much' for more common sense minds. Cheers, =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 "-" |