.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__gfs__flatten_2d: triqs::gfs::flatten_2d ====================== *#include * **Synopsis** .. rst-class:: cppsynopsis | :green:`template` | array :red:`flatten_2d` (array_const_view :param:`v`) Makes a copy of the array in matrix, 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 Parameters ^^^^^^^^^^ * :param:`a` : array * :param:`n` : the dimension to preserve. Returns ^^^^^^^ : a matrix, copy of the data