Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ value_of() [6/6]

template<typename T >
auto & stan::math::value_of ( const var_value< T > &  v)
inline

Return the value of the specified variable.

This function is used internally by autodiff functions along with value_of(T x) to extract the double value of either a scalar or an autodiff variable. This function will be called when the argument is a var even if the function is not referred to by namespace because of argument-dependent lookup.

Parameters
vVariable.
Returns
Value of variable.

Definition at line 24 of file value_of.hpp.