triqs_tprf::inverse

#include <tprf/linalg.hpp>

Synopsis

template<Channel_t CH>
g2_iw_t inverse (g2_iw_cvt g)

Two-particle response-function inversion \([g]^{-1}\).

The two-particle response function \(g_{abcd}(\omega, \nu, \nu')\) is cast to matrix form and inverted

\[[g]^{-1} = [ g_{\{\nu\alpha\beta\}, \{\nu'\gamma\delta\}}(\omega) ]^{-1}\]

where the mapping of target-space indices \(\{a, b, c, d \}\) to \(\{\alpha, \beta\}, \{\gamma, \delta\}\) is channel dependent.

Storage is allocated and the inverse is returned by value.

Template parameters

  • CH selects the two-particle channel

Parameters

  • g two-particle response function to invert, \(g \equiv g_{abcd}(\omega, \nu, \nu')\)

Returns

\([g]^{-1}\) in the given channel