1 #ifndef STAN_MATH_PRIM_FUN_SCALBN_HPP 2 #define STAN_MATH_PRIM_FUN_SCALBN_HPP 3 4 #include <stan/math/prim/meta.hpp> 5 #include <stan/math/prim/fun/value_of_rec.hpp> 6 #include <cmath> 7 8 namespace stan { 9 namespace math { 10 11 template <typename T, typename = require_autodiff_t<T>> scalbn(const T & x,int n)12double scalbn(const T& x, int n) { 13 return std::scalbn(value_of_rec(x), n); 14 } 15 16 } // namespace math 17 } // namespace stan 18 19 #endif 20