◆ interleave()

std::array<Value, 2> boost::simd::interleave ( Value const &  x,
Value const &  y 

This function object performs a complete interleaving of its arguments.

interleave is guaranteed to be optimized as much as possible compared to using boost::simd::interleave_first and boost::simd::interleave_second in succession.

Header <boost/simd/function/interleave.hpp>
For every parameters x and y of type T :
std::array<T,2> r = interleave(x,y);

is equivalent to :

std::array<T,2> r = { interleave_first(x,y), interleave_second(x,y) };
xFirst argument to interleave
ySecond argument to interleave
An array of two boost::simd::pack containing the interleaved data from the arguments