Automatic Differentiation
 
Loading...
Searching...
No Matches
scalbn.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_SCALBN_HPP
2#define STAN_MATH_PRIM_FUN_SCALBN_HPP
3
6#include <cmath>
7
8namespace stan {
9namespace math {
10
11template <typename T, typename = require_autodiff_t<T>>
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
double value_of_rec(const fvar< T > &v)
Return the value of the specified variable.
double scalbn(const T &x, int n)
Definition scalbn.hpp:12
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9