triqs::gfs::flatten_2d

#include <triqs/gfs.hpp>

Synopsis

template<int N, typename A>
auto flatten_2d (A const & v)

Given an array a, creates a two-dimensional array whose first dimension is the n-th dimension of a and the second dimension are the flattening of the other dimensions, in the original order

Template parameters

  • N : the dimension to preserve

Parameters

  • a : array

Returns

: a two-dimensional array