speigsh¶
full name: tenpy.tools.math.speigsh
parent module:
tenpy.tools.mathtype: function
-
tenpy.tools.math.speigsh(A, k, *args, **kwargs)[source]¶ Wrapper around
scipy.sparse.linalg.eigsh(), lifting the restrictionk < rank(A)-1.- Parameters
- AMxM ndarray or like
scipy.sparse.linalg.LinearOperator The (square) hermitian 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.