1 #ifndef STAN_MATH_PRIM_SCAL_FUN_PRIMITIVE_VALUE_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_PRIMITIVE_VALUE_HPP 4 #include <boost/utility/enable_if.hpp> 5 #include <boost/type_traits/is_arithmetic.hpp> 28 typename boost::enable_if<boost::is_arithmetic<T>, T>::type
45 typename boost::disable_if<boost::is_arithmetic<T>,
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.