TRIQS/TRIQS
4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
refreq.cpp
1
#include <fmt/base.h>
2
#include <
triqs/mesh.hpp
>
3
4
int
main() {
5
// initialize a real frequency mesh with 5 points on the interval [-5, 5]
6
triqs::mesh::refreq
m{-5, 5, 5};
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
}
12
}
triqs::mesh::refreq
Real frequency mesh type.
Definition
refreq.hpp:72
mesh.hpp
Umbrella header for the TRIQS mesh types.
doc
doxygen
examples
refreq.cpp
Generated by
1.15.0