piranha
0.10
|
Default functor for the implementation of piranha::math::multiply_accumulate(). More...
#include <piranha/math.hpp>
Public Member Functions | |
template<typename U , enabler< U > = 0> | |
void | operator() (U &x, const U &y, const U &z) const |
Call operator. More... | |
Default functor for the implementation of piranha::math::multiply_accumulate().
This functor can be specialised via the std::enable_if
mechanism.
|
inline |
Call operator.
x += y * z
is well-formed.The body of the operator is equivalent to:
x | target value for accumulation. |
y | first argument. |
z | second argument. |
unspecified | any exception resulting from in-place addition or binary multiplication on the operands. |