Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
value_of_rec.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_REV_FUN_VALUE_OF_REC_HPP
2
#define STAN_MATH_REV_FUN_VALUE_OF_REC_HPP
3
4
#include <
stan/math/rev/meta.hpp
>
5
#include <
stan/math/rev/core.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
16
template
<
typename
T>
17
inline
auto
&
value_of_rec
(
const
var_value<T>
& v) {
18
return
v.vi_->val_;
19
}
20
21
}
// namespace math
22
}
// namespace stan
23
#endif
stan::math::var_value
Definition
var_value_fwd_declare.hpp:8
stan::math::value_of_rec
double value_of_rec(const fvar< T > &v)
Return the value of the specified variable.
Definition
value_of_rec.hpp:20
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
core.hpp
meta.hpp
stan
math
rev
fun
value_of_rec.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.