TRIQS/TRIQS
4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
chebyshev.cpp
1
#include <fmt/base.h>
2
#include <
triqs/mesh.hpp
>
3
4
int
main() {
5
// initialize a Chebyshev mesh with beta = 10, fermionic statistics and 5 points
6
triqs::mesh::chebyshev
m{10, triqs::mesh::Fermion, 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
}
triqs::mesh::chebyshev
Chebyshev imaginary time mesh type.
Definition
chebyshev.hpp:71
mesh.hpp
Umbrella header for the TRIQS mesh types.
doc
doxygen
examples
chebyshev.cpp
Generated by
1.15.0