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.
- N : the mesh to keep
- g : array
: the single-mesh tensor-valued Green-function