1 #ifndef STAN_MATH_PRIM_SCAL_FUN_PRIMITIVE_VALUE_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_PRIMITIVE_VALUE_HPP 27 inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type
43 inline typename std::enable_if<!std::is_arithmetic<T>::value,
double>::type
T value_of(const fvar< T > &v)
Return the value of the specified variable.
double primitive_value(const fvar< T > &v)
Return the primitive value of the specified forward-mode autodiff variable.