exp2.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_EXP2_HPP
#define STAN_MATH_PRIM_SCAL_FUN_EXP2_HPP
#include <boost/math/tools/promotion.hpp>
#include <cmath>
namespace stan {
namespace math {
inline double exp2(double y) {
using std::pow;
return pow(2.0, y);
}
inline double exp2(int y) {
return exp2(static_cast<double>(y));
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
stan::math::exp2
fvar< T > exp2(const fvar< T > &x)
Definition: exp2.hpp:14
stan::math::pow
fvar< T > pow(const fvar< T > &x1, const fvar< T > &x2)
Definition: pow.hpp:17

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