triqs::gfs::gf::constructor
#include <triqs/gfs/gf.hpp>
Synopsis
gf () gf (gf<M, Target, Layout> const & x) gf (gf<M, Target, Layout> && ) gf (gf::mesh_t m, gf::data_t dat) gf (gf::mesh_t m, gf::target_shape_t shape = {}) gf (gf_view<M, Target> const & g) gf (gf_const_view<M, Target> const & g) template<typename G>gf (G const & g) template<typename Tag>gf (lazy<Tag, gf_const_view<M, Target>> l)
Documentation
1) Empty Green function (with empty array).
6) Makes a deep copy of the data
7) Makes a deep copy of the data
8) From any object modeling the concept_GreenFunction.
9) from the mpi lazy operation. Cf MPI section !
Template parameters
G A type modeling concept_GreenFunction.
Tag
Parameters
m Mesh
dat data arrray
shape Target shape
g
l The lazy object
NB : type must be the same, e.g. g2(reduce(g1)) will work only if mesh, Target, Singularity are the same…
Example
#include <triqs/gfs.hpp>
#include <triqs/mesh.hpp>
using namespace triqs::gfs;
using namespace triqs;
int main() {
auto beta = 10.0;
gf<imfreq> gf{{beta, Fermion}, {1, 1}};
}