TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
imfreq.cpp
1#include <fmt/std.h>
2#include <triqs/mesh.hpp>
3
4int main() {
5 // initialize a fermionic imaginary frequency mesh with 3 positive frequencies and beta = 10
6 triqs::mesh::imfreq m{10, triqs::mesh::Fermion, 3};
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}
Imaginary frequency mesh type.
Definition imfreq.hpp:102
Umbrella header for the TRIQS mesh types.