TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
evaluate.hpp
#include "./concepts.hpp"
#include "./prod.hpp"
#include "./utils.hpp"
#include <nda/nda.hpp>
#include <tuple>
#include <utility>

Detailed Description

Provides generic evaluation of functions defined on meshes.

Definition in file evaluate.hpp.

Go to the source code of this file.

Functions

template<Mesh M>
__inline__ auto triqs::mesh::evaluate (M const &, auto const &f, typename M::index_t const &n)
 Evaluate a function \( f \) at the index of a mesh point of the given mesh.
template<Mesh M>
__inline__ auto triqs::mesh::evaluate (M const &m, auto const &f, typename M::mesh_point_t const &mp)
 Evaluate a function \( f \) at a specific mesh point of the given mesh.
template<typename T>
__inline__ auto triqs::mesh::evaluate (Mesh auto const &, auto const &f, mesh::closest_mesh_point_t< T > const &cmp)
 Evaluate a function \( f \) at a triqs::mesh::closest_mesh_point_t object.
__inline__ auto triqs::mesh::evaluate (Mesh auto const &, auto const &f, nda::range::all_t)
 Evaluate a function \( f \) for nda::range::all.
template<Mesh... Ms, typename... Xs>
__inline__ auto triqs::mesh::evaluate (mesh::prod< Ms... > const &m, auto const &f, Xs const &...xs)
 Evaluate a multivariate function \( f \) defined on the given product mesh at the given arguments.
template<typename... Ds, typename X1, typename... Xs>
__inline__ auto triqs::mesh::evaluate (std::tuple< Ds... > const &tup, auto const &f, X1 const &x1, Xs const &...xs)
 Evaluate a multivariate function \( f \) defined on the given domains (meshes) at the given arguments.