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