Stan Math Library  2.8.0
reverse mode automatic differentiation
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
primitive_value.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_FWD_SCAL_FUN_PRIMITIVE_VALUE_HPP
2 #define STAN_MATH_FWD_SCAL_FUN_PRIMITIVE_VALUE_HPP
3 
4 #include <stan/math/fwd/core.hpp>
6 
7 namespace stan {
8 
9  namespace math {
10 
11 
21  template <typename T>
22  inline double primitive_value(const fvar<T>& v) {
24  return primitive_value(v.val_);
25  }
26 
27 
28  }
29 
30 }
31 
32 #endif
double primitive_value(const fvar< T > &v)
Return the primitive value of the specified forward-mode autodiff variable.

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