53 for (
int i = 0; i < g.
size(); ++i) triqs_bgf_clef_auto_assign_impl_aux_assign(g[i], rhs(i));
66 for (
int i = 0; i < g.
size1(); ++i)
67 for (
int j = 0; j < g.
size2(); ++j) triqs_bgf_clef_auto_assign_impl_aux_assign(g(i, j), rhs(i, j));
115 template <
typename G,
typename RHS>
void triqs_bgf_clef_auto_assign_impl_aux_assign(G &&g, RHS &&rhs) {
116 std::forward<G>(g) = std::forward<RHS>(rhs);
120 template <
typename G,
typename Expr,
int... Is>
void triqs_bgf_clef_auto_assign_impl_aux_assign(G &&g, clef::make_fun_impl<Expr, Is...> &&rhs) {
Provides the block Green's function container.
A non-owning view of a block Green's function.
int size() const
Get the total number of blocks.
int size2() const
Get the number of blocks along the second index (block2_gf only).
int size1() const
Get the number of blocks along the first index (block2_gf only).
The owning block Green's function container.
block_gf_view< Mesh, Target, Layout, 2, false > block2_gf_view
Mutable view of a two-index block Green's function.
block_gf< Mesh, Target, Layout, 2 > block2_gf
Owning two-index block Green's function (a matrix of blocks).
void 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.
void 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.