eigvals

tenpy.linalg.np_conserved.eigvals(a, sort=None)[source]

Calculate eigenvalues for a hermitian matrix.

Parameters
aArray

The hermitian square matrix to be diagonalized.

sort{‘m>’, ‘m<’, ‘>’, ‘<’, None}

How the eigenvalues should are sorted within each charge block. Defaults to None, which is same as ‘<’. See argsort() for details.

Returns
W1D ndarray

The eigenvalues, sorted within the same charge blocks according to sort.

Notes

The eigenvalues are sorted within blocks of the completely blocked legs.