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}\]

It is recommended to directly use Decomposition.reconstruct instead.

Parameters:
rv(N, N) complex np.ndarray

The matrix of right eigenvectors (\(P\)).

diag_inv(N) array_like

The eigenvalues (\(h\)).

rv_inv(N, N) complex np.ndarray

The inverse of the matrix of right eigenvectors (\(P^{-1}\)).

Returns:
(N, N) complex np.ndarray

The Green’s function.