◆ combine()

Value boost::simd::combine ( Value const &  x,
Value const &  y 
)

This function object concatenates two values of the same type to build a boost::simd::pack but with a cardinal twice as large.

Header <boost/simd/function/combine.hpp>
Scalar Semantic:
For any scalar value x and y of type T , the following code:
auto c = combine(x,y);
is equivalent to :
pack<T, 2> c(x,y);
SIMD Semantic:
For any type value x and y of type boost::simd::pack<T,N>, the following code:
pack<T,2*N> c = combine(x,y);
is equivalent to :
pack<T,2*N> c(x[0],....,x[N-1],y[0],....,y[N-1]);
where N is equal to the cardinal of both x and y.
Parameters
xFirst value to combine
ySecond value to combine
Returns
The concatenation of both inputs