function sort_eigs¶
- deeptime.numeric.sort_eigs(evals, evecs, order='magnitude')¶
Sorts the eigenvalues and eigenvectors by descending norm of the eigenvalues or lexicographically.
- Parameters:
evals ((n, ) ndarray) – eigenvalues
evecs ((k, n) ndarray) – eigenvectors in a column matrix
order (str, default='magnitude') – The order. Sorts by magnitude by default, can also be ‘lexicographic’ in which case it sorts lexicographically.
- Returns:
(evals, evecs) – the sorted eigenvalues and eigenvectors
- Return type:
(n, ) ndarray, (k, n) ndarray