Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
primitive_value.hpp
Go to the documentation of this file.
1 #ifndef STAN__AGRAD__FWD__FUNCTIONS__PRIMITIVE_VALUE_HPP
2 #define STAN__AGRAD__FWD__FUNCTIONS__PRIMITIVE_VALUE_HPP
3 
6 
7 namespace stan {
8 
9  namespace agrad {
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.
boost::enable_if< boost::is_arithmetic< T >, T >::type primitive_value(T x)
Return the value of the specified arithmetic argument unmodified with its own declared type...

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