Automatic Differentiation
 
Loading...
Searching...
No Matches
primitive_value.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_FUN_PRIMITIVE_VALUE_HPP
2#define STAN_MATH_FWD_FUN_PRIMITIVE_VALUE_HPP
3
7
8namespace stan {
9namespace math {
10
20template <typename T>
21inline double primitive_value(const fvar<T>& v) {
22 return primitive_value(v.val_);
23}
24
25} // namespace math
26} // namespace stan
27
28#endif
double primitive_value(const fvar< T > &v)
Return the primitive value of the specified forward-mode autodiff variable.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Scalar val_
The value of this variable.
Definition fvar.hpp:49
This template class represents scalars used in forward-mode automatic differentiation,...
Definition fvar.hpp:40