fma.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_FMA_HPP
#define STAN_MATH_PRIM_SCAL_FUN_FMA_HPP
#include <boost/math/tools/promotion.hpp>
namespace stan {
namespace math {
template <typename T1, typename T2, typename T3>
inline typename boost::math::tools::promote_args<T1, T2, T3>::type
fma(const T1& x, const T2& y, const T3& z) {
return x * y + z;
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
stan::math::fma
fvar< typename stan::return_type< T1, T2, T3 >::type > fma(const fvar< T1 > &x1, const fvar< T2 > &x2, const fvar< T3 > &x3)
The fused multiply-add operation (C99).
Definition: fma.hpp:61

[ Stan Home Page ] © 2011–2016, Stan Development Team.