TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
refreq_log.cpp
1#include <fmt/base.h>
2#include <triqs/mesh.hpp>
3
4int main() {
5 // initialize a logarithmic mesh with eps=0.1, w_max=10, ratio=2
6 triqs::mesh::refreq_log m{0.1, 10, 2.0};
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(), mp.value());
11}
Logarithmic real frequency mesh type.
Umbrella header for the TRIQS mesh types.