triqs::gfs::flatten_gf_2d

#include <triqs/gfs.hpp>

Synopsis

template<int N, typename G>
auto flatten_gf_2d (G const & g)

Given a Green-function g, creates a new Green function with a mesh that is the n-th mesh of g and with a target that is tensor_valued<1>, containing the flattening of all other data dimensions in original order.

Template parameters

  • N : the mesh to keep

Parameters

  • g : array

Returns

: the single-mesh tensor-valued Green-function