Stan Math Library
5.0.0
Automatic Differentiation
Loading...
Searching...
No Matches
value_of.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_REV_FUN_VALUE_OF_HPP
2
#define STAN_MATH_REV_FUN_VALUE_OF_HPP
3
4
#include <
stan/math/rev/meta.hpp
>
5
#include <
stan/math/rev/core.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
23
template
<
typename
T>
24
inline
auto
&
value_of
(
const
var_value<T>
& v) {
25
return
v.vi_->val_;
26
}
27
28
}
// namespace math
29
}
// namespace stan
30
#endif
stan::math::var_value
Definition
var_value_fwd_declare.hpp:8
stan::math::value_of
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Definition
value_of.hpp:18
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.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.