TRIQS/TRIQS
4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
dlr_imfreq.cpp
1
#include <fmt/std.h>
2
#include <
triqs/mesh.hpp
>
3
4
int
main() {
5
// initialize a fermionic imaginary frequency DLR mesh with beta = 10, omega_max = 0.5 and epsilon = 1e-6
6
triqs::mesh::dlr_imfreq
m{10, triqs::mesh::Fermion, 0.5, 1e-6};
7
8
// loop over all mesh points and print their index, data index and value
9
for
(
int
i = 0;
auto
mp : m) {
10
fmt::println(
"mesh point #{}: index = {}, data index = {}, value = {}"
, i++, mp.index(), mp.data_index(), std::complex<double>(mp.value()));
11
}
12
}
triqs::mesh::dlr_imfreq
Imaginary frequency discrete Lehmann representation (DLR) mesh type.
Definition
dlr_imfreq.hpp:80
mesh.hpp
Umbrella header for the TRIQS mesh types.
doc
doxygen
examples
dlr_imfreq.cpp
Generated by
1.15.0