Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
exp2.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__FUNCTIONS__EXP2_HPP
2 #define STAN__MATH__FUNCTIONS__EXP2_HPP
3 
4 #include <boost/math/tools/promotion.hpp>
5 #include <math.h>
6 namespace stan {
7 
8  namespace math {
9 
21  template <typename T>
22  inline typename boost::math::tools::promote_args<T>::type
23  exp2(const T y) {
25  return pow(2.0,y);
26  }
27  }
28 }
29 
30 #endif
fvar< T > pow(const fvar< T > &x1, const fvar< T > &x2)
Definition: pow.hpp:17
boost::math::tools::promote_args< T >::type exp2(const T y)
Return the exponent base 2 of the specified argument (C99).
Definition: exp2.hpp:23

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