Rosetta
|
Functions | |
template<int Nf, int Np, typename T , int N, int C> | |
boost::enable_if_c<((C+Nf-N-Np)>=1), ArrayRef< T, Nf,(C+Nf-N)> >::type | flatten_center (Array< T, N, C > const &input) |
Create a view into an array with interior contiguous dimensions merged. More... | |
|
inline |
Create a view into an array with interior contiguous dimensions merged.
The first template parameter sets the dimension of the output array and must be specified directly. Only row-major contiguous dimensions can be flattened.
The second template parameter specified the number of trailing dimensions to preserve.
References core::chemical::element::C, core::chemical::element::N, and core::chemical::element::Np.