Stan
2.5.0
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
stan
agrad
fwd
functions
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
4
#include <
stan/agrad/fwd/fvar.hpp
>
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
stan::agrad::fvar
Definition:
fvar.hpp:13
stan::agrad::value_of
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Definition:
value_of.hpp:16
fvar.hpp
stan::agrad::fvar::val_
T val_
Definition:
fvar.hpp:15
[
Stan Home Page
]
© 2011–2014, Stan Development Team.