◆ repeat_upper_half()

Value boost::simd::repeat_upper_half ( Value const &  x)

Function object implementing repeat_upper_half capabilities.

Repeat upper half of a vector

Header <boost/simd/function/repeat_upper_half.hpp>
Semantic:

For every parameter of type T

is similar to:

T r;
const std::size_t n = meta::cardinal_of<T>::value;
const std::size_t middle = meta::cardinal_of<T>::value/2;
for(std::size_t i=middle;i<n;++i)
{
r[i] = r[i-middle] = x[i];
}