Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ value_of_rec() [4/10]

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

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 38 of file value_of_rec.hpp.