Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
fma.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__FUNCTIONS__FMA_HPP__
2 #define __STAN__MATH__FUNCTIONS__FMA_HPP__
3 
4 #include <boost/math/tools/promotion.hpp>
5 
6 namespace stan {
7  namespace math {
8 
21  template <typename T1, typename T2, typename T3>
22  inline typename boost::math::tools::promote_args<T1,T2,T3>::type
23  fma(const T1 a, const T2 b, const T3 c) {
24  return (a * b) + c;
25  }
26 
27  }
28 }
29 #endif

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