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
6
7namespace stan {
8namespace math {
9
16template <typename T>
17inline auto& value_of_rec(const var_value<T>& v) {
18 return v.vi_->val_;
19}
20
21} // namespace math
22} // namespace stan
23#endif
double value_of_rec(const fvar< T > &v)
Return the value of the specified variable.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...