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