1#ifndef STAN_MATH_PRIM_FUN_PRIMITIVE_VALUE_HPP
2#define STAN_MATH_PRIM_FUN_PRIMITIVE_VALUE_HPP
27inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type
43inline typename std::enable_if<!std::is_arithmetic<T>::value,
double>::type
double primitive_value(const fvar< T > &v)
Return the primitive value of the specified forward-mode autodiff variable.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...