gftool.beb.SpecDec¶
-
class
gftool.beb.SpecDec(rv: np.ndarray, eig: np.ndarray, rv_inv: np.ndarray)[source]¶ SVD like spectral decomposition.
Works only for N×N matrices unlike the
UDecompositionbase class.-
__init__(rv: np.ndarray, eig: np.ndarray, rv_inv: np.ndarray) → None Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(rv, eig, rv_inv)Initialize self.
count(value)from_gf(gf)Decompose the inverse Green’s function matrix.
from_hamiltonian(hamilton)Decompose the Hamiltonian matrix.
index(value, [start, [stop]])Raises ValueError if the value is not present.
partition([return_sqrts])Symmetrically partition the spectral decomposition as u * eig**0.5, eig**0.5 * uh.
reconstruct([eig, kind])Get matrix back from Decomposition.
truncate([rcond])Return the truncated spectral decomposition.
Attributes
The vector of eigenvalues.
Check if SVD of square matrix is truncated/compact or full.
The matrix of right eigenvectors.
The inverse of
rv.Singular values in descending order, different from order of
eig.Unitary matrix of right eigenvectors, same as
rv.-