TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
refreq_pts.cpp
1#include <fmt/base.h>
2#include <triqs/mesh.hpp>
3
4int main() {
5 // initialize a refreq_pts mesh from a vector of points
6 triqs::mesh::refreq_pts m{std::vector<double>{-5.0, -1.0, 0.0, 1.0, 5.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}
Real frequency mesh type from arbitrary sorted frequency points.
Umbrella header for the TRIQS mesh types.