TRIQS/TRIQS
4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
gf_tutorial_4.cpp
1
#include <
triqs/gfs.hpp
>
2
#include <
triqs/mesh.hpp
>
3
using namespace
triqs;
4
using namespace
triqs::gfs;
5
6
int
main() {
7
// Create a real-time mesh on the interval [tmin, tmax]
8
double
tmin = 0, tmax = 10;
9
int
n_times = 101;
// number of time-points
10
auto
t_mesh =
mesh::retime
{tmin, tmax, n_times};
11
12
// Create a scalar-valued Green function g[t1,t2] on the product-mesh and initialize
13
auto
g =
gf<prod<retime, retime>
,
scalar_valued
>{t_mesh * t_mesh};
14
}
triqs::gfs::gf
The owning Green's function container.
Definition
gf.hpp:194
triqs::mesh::retime
Real time mesh type.
Definition
retime.hpp:70
gfs.hpp
Umbrella header for the Green's function library.
mesh.hpp
Umbrella header for the TRIQS mesh types.
triqs::gfs::scalar_valued
Target type for a complex scalar-valued Green's function.
Definition
targets.hpp:188
doc
doxygen
examples
gf_tutorial_4.cpp
Generated by
1.15.0