eigvals
full name: tenpy.linalg.np_conserved.eigvals
parent module:
tenpy.linalg.np_conserved
type: function
- tenpy.linalg.np_conserved.eigvals(a, sort=None)[source]
Calculate eigenvalues for a hermitian matrix.
- Parameters:
a (
Array
) – The hermitian square matrix to be diagonalized.sort ({‘m>’, ‘m<’, ‘>’, ‘<’,
None
}) – How the eigenvalues should are sorted within each charge block. Defaults toNone
, which is same as ‘<’. Seeargsort()
for details.
- Returns:
W – The eigenvalues, sorted within the same charge blocks according to sort.
- Return type:
1D ndarray
Notes
The eigenvalues are sorted within blocks of the completely blocked legs.