triqs::gfs::flatten_2d

#include <triqs/gfs.hpp>

Synopsis

template<int N, typename T, int R>
array<T, 2> flatten_2d (array_const_view<T, R> 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

  • a : array

  • n : the dimension to preserve.

Returns

: a matrix, copy of the data