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

◆ value_of_rec() [2/8]

template<typename T , typename = require_stan_scalar_t<T>>
double stan::math::value_of_rec ( const T  x)
inline

Return the value of the specified scalar argument converted to a double value.

See the primitive_value function to extract values without casting to double.

This function is meant to cover the primitive types. For types requiring pass-by-reference, this template function should be specialized.

Template Parameters
TType of scalar.
Parameters
xScalar to convert to double.
Returns
Value of scalar cast to a double.

Definition at line 29 of file value_of_rec.hpp.