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