TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
discrete.cpp
1#include <fmt/base.h>
2#include <triqs/mesh.hpp>
3
4int main() {
5 // initialize a discrete mesh with 5 points
7
8 // loop over all mesh points and print their index and data index
9 for (int i = 0; auto mp : m) fmt::println("mesh point #{}: index = {}, data index = {}", i++, mp.index(), mp.data_index());
10}
Discrete mesh type.
Definition discrete.hpp:51
Umbrella header for the TRIQS mesh types.