3 ms·
That’s why I said argsort :) https://numpy.org/doc/stable/reference/generated/numpy.argsort.html https://numpy.org/doc/stable/reference/generated/numpy.argso..
by amluto 3y ago
That’s why I said argsort :)
https://numpy.org/doc/stable/reference/generated/numpy.argsort.html https://numpy.org/doc/stable/reference/generated/numpy.argso...
I assume this name derives from argmin and argmax, which go back at least to MATLAB. But MATLAB has sort returning indices too.