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