Create a real time Green function --------------------------------- .. compileblock:: #include #include using triqs::gf::make_gf; using triqs::gf::retime; int main() { double tmin=0; double tmax=10; //we will have 5 points size_t n_times=5; //we want a Green function whose values are complex numbers auto shape = triqs::arrays::make_shape(1,1); // the type of GF is triqs::gf::gf auto GF=make_gf(tmin, tmax, n_times, shape); }; Create a real frequency Green function -------------------------------------- .. compileblock:: #include #include using triqs::gf::make_gf; using triqs::gf::refreq; int main() { double wmin=0; double wmax=10; size_t n_freq=5; //we want a Green function whose values are 2*2 matrices of complex numbers auto shape = triqs::arrays::make_shape(2,2); auto GF=make_gf(wmin, wmax, n_freq, shape); };