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

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

Detailed Description

template<typename L>
struct triqs::gfs::gf_unary_m_expr< L >

Lazy expression node representing the unary minus of a Green's function operand.

Template Parameters
LType of the operand (a Green's function or a wrapped scalar).

Definition at line 258 of file gf_expr.hpp.

Public Types

using L_t = std::remove_reference_t<L>
 Decayed type of the operand.
using mesh_t = typename L_t::mesh_t
 Mesh type of the expression.
using regular_t = gf<mesh_t, target_t>
 Regular (owning) type the expression evaluates to.
using target_t = typename L_t::target_t
 Target type of the expression.

Public Member Functions

template<typename LL>
 gf_unary_m_expr (LL &&l_)
 Construct from the operand.
auto data_shape () const
 Get the data shape of the expression.
decltype(auto) mesh () const
 Get the mesh of the expression.
template<typename... Args>
auto operator() (Args &&...1) const
 Evaluate the negated expression via call.
template<typename... Keys>
auto operator[] (Keys &&...keys) const
 Evaluate the negated expression via subscript.

Public Attributes

l
 The operand.

Friends

std::ostream & operator<< (std::ostream &sout, gf_unary_m_expr const &expr)
 Stream output of the expression.

Constructor & Destructor Documentation

◆ gf_unary_m_expr()

template<typename L>
template<typename LL>
triqs::gfs::gf_unary_m_expr< L >::gf_unary_m_expr ( LL && l_)
inline

Construct from the operand.

Template Parameters
LLForwarding type of the operand.
Parameters
l_Operand.

Definition at line 281 of file gf_expr.hpp.

Member Function Documentation

◆ data_shape()

template<typename L>
auto triqs::gfs::gf_unary_m_expr< L >::data_shape ( ) const
inline

Get the data shape of the expression.

Returns
The data shape of the operand.

Definition at line 293 of file gf_expr.hpp.

◆ mesh()

template<typename L>
decltype(auto) triqs::gfs::gf_unary_m_expr< L >::mesh ( ) const
inline

Get the mesh of the expression.

Returns
The mesh of the operand.

Definition at line 287 of file gf_expr.hpp.


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