Stan Math Library  2.10.0
reverse mode automatic differentiation
value_of_rec.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_VALUE_OF_REC_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_VALUE_OF_REC_HPP
3 
4 namespace stan {
5 
6  namespace math {
7 
23  template <typename T>
24  inline double value_of_rec(const T x) {
25  return static_cast<double>(x);
26  }
27 
39  template <>
40  inline double value_of_rec<double>(const double x) {
41  return x;
42  }
43 
44  }
45 }
46 
47 #endif
double value_of_rec(const fvar< T > &v)
Return the value of the specified variable.
double value_of_rec< double >(const double x)
Return the specified argument.

     [ Stan Home Page ] © 2011–2016, Stan Development Team.