mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +01:00
edd1ff4529
A first general restructuration of the doc according to the pattern [tour|tutorial|reference]. In the reference part, objects are documented per topic. In each topic, [definition|c++|python|hdf5] (not yet implemented)
17 lines
371 B
C++
17 lines
371 B
C++
#include <triqs/gfs.hpp>
|
|
using namespace triqs::gfs;
|
|
using triqs::clef::placeholder;
|
|
int main() {
|
|
|
|
// Cf gf<imfreq> specialisation page for the constructor
|
|
double beta = 10;
|
|
int Nfreq = 100;
|
|
auto g = gf<imfreq>{{beta, Fermion, Nfreq}, {1, 1}};
|
|
|
|
// Filling the gf with something...
|
|
placeholder<0> wn_;
|
|
g(wn_) << 1 / (wn_ + 2);
|
|
g(wn_) << 1 / (wn_ + 2 + g(wn_));
|
|
}
|
|
|