◆ splatted_

const detail::decorator<splatted_tag> boost::simd::splatted_ = {}

Decorator for selecting splatted version of reduction function.

Reduction functions operating on SIMD pack returns a single scalar value. For efficiency issue, it may be interesting to retrieve this result as a SIMD pack containing said value in all of its element. The splatted_ decorator allow for such optimization.

Header <boost/simd/function/splatted.hpp>

For any reduction function r and any SIMD pack @ p , the following code:

auto v = splatted_(r)(p);

is equivalent to:

auto v = splat<decltype(p)>(r(p));