triqs::gfs::gf::constructor
#include <triqs/gfs/gf.hpp>
Synopsis
gf () gf (gf<Mesh, Target, Layout, EvalPolicy> const & x) gf (gf<Mesh, Target, Layout, EvalPolicy> && ) gf (gf::mesh_t m, gf::data_t dat, gf::indices_t ind) gf (gf::mesh_t m,gf::target_shape_t shape = target_shape_t{},gf::indices_t const & ind = indices_t{}) gf (gf_view<Mesh, Target> const & g) gf (gf_const_view<Mesh, Target> const & g) template<typename G>gf (G const & g) template<typename Tag>gf (lazy<Tag, gf_const_view<Mesh, 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
- ind Indices
- 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::mesh;
int main() {
auto beta = 10.0;
gf<imfreq> gf{{beta, Fermion}, {1, 1}};
}