simdpp::reduce_mul(floatint-point)

From libsimdpp-docs
< fp
template<unsigned N, class E1>
Ret reduce_mul( const Vec1<N,E1>& a );

Computes the product of all elements in the vector. The implementation behaves as if the following set of overloads is provided:

Ret Vec1
float float32
double float64

The order in which the operations are executed is undefined, but is consistent on the same instruction set. This may lead to slightly different results on different instruction sets due to different rounding.

Parameters[edit]

a - floating-point vector

Return value[edit]

A product of all elements within a vector

Equivalent operation[edit]

r = a0 * ... * aN

See also[edit]