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
6
7namespace stan {
8namespace math {
9
23template <typename T>
24inline auto& value_of(const var_value<T>& v) {
25 return v.vi_->val_;
26}
27
28} // namespace math
29} // namespace stan
30#endif
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Definition value_of.hpp:18
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...