◆ splat()

as_simd_t<Value> boost::simd::splat ( Value const &  x)

Splat.

Fills an entire SIMD vector with its argument.

Header <boost/simd/function/splat.hpp>
Semantic

For any type T and value x of type U:

T r = splat(x);

is similar to:

for(int i=0;i<T::static_size;++i) r[i] = x;