[SciPy-user] sort complex numbers

Nils Wagner nwagner at mecha.uni-stuttgart.de
Mon Oct 28 07:18:30 EST 2002


Hi,

How can I emulate Matlab's sort function for complex numbers in scipy ?

Nils

BTW, this is Matlab's policy.

When X is complex, the elements are sorted by ABS(X).  Complex
matches are further sorted by ANGLE(X).



More information about the SciPy-User mailing list