55 auto g2_flat = lambda(gin_flatten);
58 auto g_out =
gf{
mesh::prod{mesh_tpl}, gin.target_shape()};
A read-only, non-owning view of a Green's function.
The owning Green's function container.
Product mesh type for combining multiple meshes.
Provides utilities to flatten the data of arrays and Green's functions into a two-dimensional form.
Provides the triqs::gfs::gf_const_view container, a read-only non-owning view of a Green's function.
Provides the Green's function class.
auto partial_transform(gf_const_view< mesh::prod< M... >, Target > gin, auto lambda)
Apply a transform to a single mesh component of a product-mesh Green's function.
void unflatten_2d(nda::MemoryArray auto &&out, nda::MemoryArray auto const &afl)
Inverse of triqs::gfs::flatten_2d: scatter a two-dimensional array back into a higher-rank array.
auto flatten_gf_2d(G const &g)
Flatten a Green's function into a single-mesh, tensor-valued Green's function.
auto replace(T &&t, R &&r)
Return a copy of a tuple with the elements at the given positions replaced by a given value.
Provides a product mesh type.