Automatic Differentiation
 
Loading...
Searching...
No Matches
logb.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_LOGB_HPP
2#define STAN_MATH_PRIM_FUN_LOGB_HPP
3
5#include <cmath>
6
7namespace stan {
8namespace math {
9
23template <typename T, typename = require_autodiff_t<T>>
24double logb(const T& x) {
25 return std::logb(value_of_rec(x));
26}
27
28} // namespace math
29} // namespace stan
30
31#endif
double value_of_rec(const fvar< T > &v)
Return the value of the specified variable.
double logb(const T &x)
Returns the value of the unbiased radix-independent exponent from the floating-point argument.
Definition logb.hpp:24
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9