value_of.hpp
Go to the documentation of this file.
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>
16 inline T value_of(const fvar<T>& v) {
17  return v.val_;
18 }
19 
20 } // namespace math
21 } // namespace stan
22 #endif
T value_of(const fvar< T > &v)
Definition: value_of.hpp:16
double T
Definition: Xdiff_gwt.C:5