|
inlineconstexpr |
Computes the sum of products operation with better accuracy than the naive formula.
Defined in Header
Parameters
x, y, z, t: floating value arguments.Return value
The value of x*y+z*t, with better precision if correct fma is available, is returned.
The call eve::raw(eve::diff_of_prod)(x, y, z, t) computes a raw version of eve::sum_of_prod, i.e. the naive formula
The call eve::pedantic(eve::sum_of_prod)(x, y, z, t) computes a pedantic version of eve::sum_of_prod ensuring better accuracy in any case.
Example