piranha  0.10
Public Member Functions | List of all members
piranha::math::multiply_accumulate_impl< T, typename > Struct Template Reference

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...
 

Detailed Description

template<typename T, typename = void>
struct piranha::math::multiply_accumulate_impl< T, typename >

Default functor for the implementation of piranha::math::multiply_accumulate().

This functor can be specialised via the std::enable_if mechanism.

Definition at line 339 of file math.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename = void>
template<typename U , enabler< U > = 0>
void piranha::math::multiply_accumulate_impl< T, typename >::operator() ( U &  x,
const U &  y,
const U &  z 
) const
inline

Call operator.

Note
This call operator is enabled only if the expression x += y * z is well-formed.

The body of the operator is equivalent to:

x += y * z;
Parameters
xtarget value for accumulation.
yfirst argument.
zsecond argument.
Exceptions
unspecifiedany exception resulting from in-place addition or binary multiplication on the operands.

Definition at line 366 of file math.hpp.


The documentation for this struct was generated from the following file: