.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__gfs__make_zero_tail: triqs::gfs::make_zero_tail ========================== *#include * **Synopsis** .. rst-class:: cppsynopsis | :green:`template` | auto :red:`make_zero_tail` (G const & :param:`g`, int :param:`n_moments` = 10) Create a zero-initialized tail object for a given Green function object Template parameters ^^^^^^^^^^^^^^^^^^^ * :param:`N` The mesh position of the frequency or time mesh [default: 0] * :param:`G` The type of the Green function (gf, gf_view, block_gf, ...) Parameters ^^^^^^^^^^ * :param:`g` The Green function object to create the tail object for * :param:`n_moments` The number of high-frequency moments to provide (including the zeroth moment) Example ^^^^^^^ .. Included automatically from /src/triqs/doc/documentation/examples/triqs/gfs/make_zero_tail.cpp .. code-block:: cpp #include #include using namespace triqs::gfs; using namespace triqs::mesh; int main() { double beta = 1.0; int n_iw = 100; auto g = gf{{beta, Fermion, n_iw}, {1,1}}; auto empty_tail = make_zero_tail(g, 2); }