[PYTHON MATRIX-SIG] Standard Numerical Library
11 Aug 1996 00:41:01 +0300
Carlos Fonseca <email@example.com> writes:
> I find functions like max(), min(), and sort() (fun() for short) more
> limited than the corresponding argfun(), simply because the former could
> always be writen as take(a,argfun(a)).
I agree... it is complex to compute the index from the value, the
other way it's much easier.
argsort() solves my problem, at least less suboptimally than some
other hacks. In 1.0 alpha1 there seems to be some kind of type
conversion missing from argsort(), however:
2 3 1 0
6.36598737e-314 4.94065646e-324 0.00000000e+000 0.00000000e+000
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: firstname.lastname@example.org
administrivia to: email@example.com