TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::gfs::gf_evaluator< M >

#include <triqs/gfs/evaluator.hpp>

Detailed Description

template<Mesh M>
struct triqs::gfs::gf_evaluator< M >

Default evaluator of a Green's function at arbitrary points of its mesh.

Functor that evaluates a Green's function at an arbitrary point of a given mesh.

The primary template forwards the evaluation to the mesh's evaluate function, which interpolates the underlying data. It is specialized for specific meshes (e.g. triqs::mesh::imfreq) where evaluation outside the stored grid requires dedicated handling.

Template Parameters
MThe mesh type of the Green's function.

This template is specialized for each mesh type to provide the appropriate interpolation scheme used when a Green's function is called with off-mesh arguments.

Template Parameters
Mtriqs::mesh::Mesh type.

Definition at line 52 of file evaluator.hpp.

Public Member Functions

template<typename G, typename... XS>
requires (is_gf_v<G>)
auto operator() (G const &g, XS &&...xs) const
 Evaluate a Green's function at a set of mesh coordinates.

Member Function Documentation

◆ operator()()

template<Mesh M>
template<typename G, typename... XS>
requires (is_gf_v<G>)
auto triqs::gfs::gf_evaluator< M >::operator() ( G const & g,
XS &&... xs ) const
inline

Evaluate a Green's function at a set of mesh coordinates.

Interpolates the data of g via the mesh's evaluate function. If any of the coordinates makes a mesh evaluate to zero, a zero-valued result of the appropriate target shape is returned.

Template Parameters
GThe Green's function type (must satisfy is_gf_v).
XSThe types of the evaluation coordinates.
Parameters
gThe Green's function to evaluate.
xsThe coordinates at which to evaluate, one per mesh component.
Returns
The interpolated value at the given coordinates.

Definition at line 69 of file evaluator.hpp.


The documentation for this struct was generated from the following file: