Automatic Differentiation
 
Loading...
Searching...
No Matches
value_of.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_FUN_VALUE_OF_HPP
2#define STAN_MATH_FWD_FUN_VALUE_OF_HPP
3
7namespace stan {
8namespace math {
9
17template <typename T>
18inline T value_of(const fvar<T>& v) {
19 return v.val_;
20}
21
22} // namespace math
23} // namespace stan
24#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 ...
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