expm1.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_EXPM1_HPP
#define STAN_MATH_PRIM_SCAL_FUN_EXPM1_HPP
#include <stan/math/prim/scal/fun/boost_policy.hpp>
#include <boost/math/special_functions/expm1.hpp>
namespace stan {
namespace math {
inline double expm1(double x) {
return boost::math::expm1(x, boost_policy_t());
}
inline double expm1(int x) {
return expm1(static_cast<double>(x));
}
}
}
#endif
boost_policy.hpp
stan
Definition: log_sum_exp.hpp:8
stan::math::expm1
fvar< T > expm1(const fvar< T > &x)
Definition: expm1.hpp:12
stan::math::expm1
var expm1(const var &a)
The exponentiation of the specified variable minus 1 (C99).
Definition: expm1.hpp:49
stan::math::boost_policy_t
boost::math::policies::policy< boost::math::policies::overflow_error< boost::math::policies::errno_on_error >, boost::math::policies::pole_error< boost::math::policies::errno_on_error > > boost_policy_t
Boost policy that overrides the defaults to match the built-in C++ standard library functions...
Definition: boost_policy.hpp:23

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