1 #ifndef STAN_MATH_FWD_SCAL_FUN_VALUE_OF_HPP 2 #define STAN_MATH_FWD_SCAL_FUN_VALUE_OF_HPP 3 4 #include <stan/math/fwd/core.hpp> 5 6 namespace stan { 7 namespace math { 8 9 /** 10 * Return the value of the specified variable. 11 * 12 * @param v Variable. 13 * @return Value of variable. 14 */ 15 template <typename T> value_of(const fvar<T> & v)16inline T value_of(const fvar<T>& v) { 17 return v.val_; 18 } 19 20 } // namespace math 21 } // namespace stan 22 #endif 23