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
7
8namespace stan {
9namespace math {
10
18inline double primitive_value(const var& v) { return v.val(); }
19
20} // namespace math
21} // namespace stan
22#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 ...