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
4
int
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
}
triqs::mesh::refreq_log
Logarithmic real frequency mesh type.
Definition
refreq_log.hpp:74
mesh.hpp
Umbrella header for the TRIQS mesh types.
doc
doxygen
examples
refreq_log.cpp
Generated by
1.15.0