function eigs¶
- deeptime.numeric.eigs(matrix: ndarray, n_eigs=None, which='LM')¶
Computes the eigenvalues and eigenvectors of matrix. Optionally the number of eigenvalue-eigenvector pairs can be provided, in which case they are computed using the Lanczos algorithm.
- Parameters:
matrix ((n, n) ndarray) – The matrix to compute the eigenvalues and eigenvectors of.
n_eigs (int, optional, default=None) – The number of eigenpairs. Can be None, in which case all eigenvalues are computed.
which (str, default='LM') – If n_eigs is provided, determines which eigenvalues are returned. Default is ‘Largest Magnitude. See the scipy documentation for all options and effects.
- Returns:
(eigenvalues, eigenvectors) – The computed eigenvalues and eigenvectors.
- Return type:
((n, ) ndarray, (k, n) ndarray)