Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
math
functions
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
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) {
24
using
std::pow
;
25
return
pow
(2.0,y);
26
}
27
}
28
}
29
30
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.