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 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.