speigsh

  • full name: tenpy.tools.math.speigsh

  • parent module: tenpy.tools.math

  • type: function

tenpy.tools.math.speigsh(A, k, *args, **kwargs)[source]

Wrapper around scipy.sparse.linalg.eigsh(), lifting the restriction k < 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().

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 if kwargs['return_eigenvectors'] == True.