gftool.matrix.construct_gf¶
-
gftool.matrix.construct_gf(rv, diag_inv, rv_inv)[source]¶ Construct Green’s function from decomposition of its inverse.
\[G^{−1} = P h P^{-1} ⇒ G = P h^{-1} P^{-1}\]Parameters: - rv_inv : (N, N) complex np.ndarray
The inverse of the matrix of right eigenvectors (\(P^{-1}\))
- diag_inv : (N) array_like
The eigenvalues (\(h\))
- rv : (N, N) complex np.ndarray
The matrix of right eigenvectors (\(P\))
Returns: - gf : (N, N) complex np.ndarray
The Green’s function