Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
value_of.hpp
Go to the documentation of this file.
1 #ifndef STAN__AGRAD__FWD__FUNCTIONS__VALUE_OF_HPP
2 #define STAN__AGRAD__FWD__FUNCTIONS__VALUE_OF_HPP
3 
5 
6 namespace stan {
7  namespace agrad {
8 
15  template<typename T>
16  inline T value_of(const fvar<T>& v) {
17  return v.val_;
18  }
19 
20  }
21 }
22 #endif
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Definition: value_of.hpp:16

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