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
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
4
#include <
stan/agrad/fwd/fvar.hpp
>
5
#include <
stan/math/functions/primitive_value.hpp
>
6
7
namespace
stan {
8
9
namespace
agrad {
10
11
21
template
<
typename
T>
22
inline
double
primitive_value
(
const
fvar<T>
& v) {
23
using
stan::math::primitive_value
;
24
return
primitive_value
(v.
val_
);
25
}
26
27
28
}
29
30
}
31
32
#endif
stan::agrad::fvar
Definition:
fvar.hpp:13
fvar.hpp
stan::agrad::primitive_value
double primitive_value(const fvar< T > &v)
Return the primitive value of the specified forward-mode autodiff variable.
Definition:
primitive_value.hpp:22
primitive_value.hpp
stan::math::primitive_value
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...
Definition:
primitive_value.hpp:30
stan::agrad::fvar::val_
T val_
Definition:
fvar.hpp:15
[
Stan Home Page
]
© 2011–2014, Stan Development Team.