.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs_tprf__identity: triqs_tprf::identity ==================== *#include * **Synopsis** .. rst-class:: cppsynopsis | :green:`template` | g2_iw_t :red:`identity` (g2_iw_cvt :param:`g`) Two-particle response-function identity operator :math:`\mathbf{1}` Constructs the unity-operator in the given channel .. math:: \mathbf{1}_{abcd}(\omega,\nu,\nu') = \mathbf{1}_{\{\nu\alpha\beta\}, \{\nu'\gamma\delta\}}(\omega) \equiv \delta_{\nu\nu'} \delta_{\alpha\gamma} \delta_{\beta\delta} where the mapping of target-space indices :math:`\{a, b, c, d \}` to :math:`\{\alpha, \beta\}, \{\gamma, \delta\}` is channel dependent. Storage is allocated and the result is returned by value. Template parameters ^^^^^^^^^^^^^^^^^^^ * :param:`CH` selects the two-particle channel Parameters ^^^^^^^^^^ * :param:`A` two-particle response function :math:`A \equiv A_{abcd}(\omega, \nu, \nu')` determinig the shape and size of the unity operator Returns ^^^^^^^ the unity operator :math:`\mathbf{1}`, in the given channel