speigs
full name: tenpy.tools.math.speigs
parent module:
tenpy.tools.mathtype: function
- tenpy.tools.math.speigs(A, k, *args, **kwargs)[source]
Wrapper around
scipy.sparse.linalg.eigs(), lifting the restrictionk < rank(A)-1.- Parameters:
A (MxM ndarray or like
scipy.sparse.linalg.LinearOperator) – the (square) linear operator for which the eigenvalues should be computed.k (int) – the number of eigenvalues to be computed.
*args – Further arguments directly given to
scipy.sparse.linalg.eigs()**kwargs – Further keyword arguments directly given to
scipy.sparse.linalg.eigs()
- Returns:
w (ndarray) – array of min(k, A.shape[0]) eigenvalues
v (ndarray) – array of min(k, A.shape[0]) eigenvectors,
v[:, i]is the i-th eigenvector. Only returned ifkwargs['return_eigenvectors'] == True.