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

◆ primitive_value() [2/4]

template<typename T >
std::enable_if< std::is_arithmetic< T >::value, T >::type stan::math::primitive_value ( x)
inline

Return the value of the specified arithmetic argument unmodified with its own declared type.

This template function can only be instantiated with arithmetic types as defined by std library's is_arithmetic trait metaprogram.

This function differs from value_of in that it does not cast all return types to double.

Template Parameters
Ttype of arithmetic input.
Parameters
xinput.
Returns
input unmodified.

Definition at line 28 of file primitive_value.hpp.