TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
CLEF auto-assignment

Detailed Description

CLEF integration enabling the g(w_) << expr assignment syntax.

Hooks that let a Green's function be filled by a lazy CLEF expression, e.g. g(w_) << 1 / (w_ - eps), by evaluating the expression at every mesh point.

Functions

template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign (block2_gf< M, T > &g, RHS const &rhs)
 CLEF auto-assignment into a (owning) two-index block Green's function (delegates to the view overload).
template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign (block2_gf_view< M, T > g, RHS const &rhs)
 CLEF auto-assignment into a two-index block Green's function view, i.e. g(i_, j_) << expr.
template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign (block_gf< M, T > &g, RHS const &rhs)
 CLEF auto-assignment into a (owning) block Green's function (delegates to the view overload).
template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign (block_gf_view< M, T > g, RHS const &rhs)
 CLEF auto-assignment into a block Green's function view, i.e. g(om_) << expr.
template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign (gf< M, T, L > &g, RHS const &rhs)
 CLEF auto-assignment into a (owning) Green's function (delegates to the view overload).
template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign (gf_view< M, T, L > g, RHS const &rhs)
 CLEF auto-assignment into a Green's function view, i.e. g(om_) << expr.
template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign_subscript (block_gf< M, T > &g, RHS const &rhs)
 CLEF auto-assignment via subscript into a (owning) block Green's function (delegates to the view overload).
template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign_subscript (block_gf_view< M, T > g, RHS const &rhs)
 CLEF auto-assignment via subscript into a block Green's function view, i.e. g[om_] << expr.
template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign_subscript (gf< M, T, L > &g, RHS const &rhs)
 CLEF auto-assignment via subscript into a (owning) Green's function (delegates to the view overload).
template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign_subscript (gf_view< M, T, L > g, RHS const &rhs)
 CLEF auto-assignment via subscript into a Green's function view, i.e. g[om_] << expr.

Function Documentation

◆ clef_auto_assign() [1/6]

template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign ( block2_gf< M, T > & g,
RHS const & rhs )

#include <triqs/gfs/block/auto_assign.hpp>

CLEF auto-assignment into a (owning) two-index block Green's function (delegates to the view overload).

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
Parameters
gTwo-index block Green's function to fill.
rhsCLEF expression to evaluate at each block.

Definition at line 90 of file auto_assign.hpp.

◆ clef_auto_assign() [2/6]

template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign ( block2_gf_view< M, T > g,
RHS const & rhs )

#include <triqs/gfs/block/auto_assign.hpp>

CLEF auto-assignment into a two-index block Green's function view, i.e. g(i_, j_) << expr.

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
Parameters
gTwo-index block Green's function view to fill.
rhsCLEF expression to evaluate at each block.

Definition at line 65 of file auto_assign.hpp.

◆ clef_auto_assign() [3/6]

template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign ( block_gf< M, T > & g,
RHS const & rhs )

#include <triqs/gfs/block/auto_assign.hpp>

CLEF auto-assignment into a (owning) block Green's function (delegates to the view overload).

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
Parameters
gBlock Green's function to fill.
rhsCLEF expression to evaluate at each block.

Definition at line 79 of file auto_assign.hpp.

◆ clef_auto_assign() [4/6]

template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign ( block_gf_view< M, T > g,
RHS const & rhs )

#include <triqs/gfs/block/auto_assign.hpp>

CLEF auto-assignment into a block Green's function view, i.e. g(om_) << expr.

Iterates over the blocks and fills each block with the evaluation of the right hand side at the block index.

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
Parameters
gBlock Green's function view to fill.
rhsCLEF expression to evaluate at each block.

Definition at line 52 of file auto_assign.hpp.

◆ clef_auto_assign() [5/6]

template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign ( gf< M, T, L > & g,
RHS const & rhs )

#include <triqs/gfs/gf/auto_assign.hpp>

CLEF auto-assignment into a (owning) Green's function (delegates to the view overload).

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
LLayout type.
Parameters
gGreen's function to fill.
rhsCLEF expression to evaluate at each mesh point.

Definition at line 85 of file auto_assign.hpp.

◆ clef_auto_assign() [6/6]

template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign ( gf_view< M, T, L > g,
RHS const & rhs )

#include <triqs/gfs/gf/auto_assign.hpp>

CLEF auto-assignment into a Green's function view, i.e. g(om_) << expr.

Iterates over the mesh and fills each mesh point with the evaluation of the right hand side. For product meshes the mesh point is unpacked into the multiple arguments of the expression.

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
LLayout type.
Parameters
gGreen's function view to fill.
rhsCLEF expression to evaluate at each mesh point.

Definition at line 67 of file auto_assign.hpp.

◆ clef_auto_assign_subscript() [1/4]

template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign_subscript ( block_gf< M, T > & g,
RHS const & rhs )

#include <triqs/gfs/block/auto_assign.hpp>

CLEF auto-assignment via subscript into a (owning) block Green's function (delegates to the view overload).

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
Parameters
gBlock Green's function to fill.
rhsCLEF expression to evaluate at each block.

Definition at line 112 of file auto_assign.hpp.

◆ clef_auto_assign_subscript() [2/4]

template<typename RHS, typename M, typename T>
void triqs::gfs::clef_auto_assign_subscript ( block_gf_view< M, T > g,
RHS const & rhs )

#include <triqs/gfs/block/auto_assign.hpp>

CLEF auto-assignment via subscript into a block Green's function view, i.e. g[om_] << expr.

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
Parameters
gBlock Green's function view to fill.
rhsCLEF expression to evaluate at each block.

Definition at line 101 of file auto_assign.hpp.

◆ clef_auto_assign_subscript() [3/4]

template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign_subscript ( gf< M, T, L > & g,
RHS const & rhs )

#include <triqs/gfs/gf/auto_assign.hpp>

CLEF auto-assignment via subscript into a (owning) Green's function (delegates to the view overload).

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
LLayout type.
Parameters
gGreen's function to fill.
rhsCLEF expression to evaluate at each mesh point.

Definition at line 116 of file auto_assign.hpp.

◆ clef_auto_assign_subscript() [4/4]

template<typename RHS, typename M, typename T, typename L>
__inline__ void triqs::gfs::clef_auto_assign_subscript ( gf_view< M, T, L > g,
RHS const & rhs )

#include <triqs/gfs/gf/auto_assign.hpp>

CLEF auto-assignment via subscript into a Green's function view, i.e. g[om_] << expr.

Template Parameters
RHSType of the CLEF expression on the right hand side.
MMesh type.
TTarget type.
LLayout type.
Parameters
gGreen's function view to fill.
rhsCLEF expression to evaluate at each mesh point.

Definition at line 99 of file auto_assign.hpp.