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

◆ to_int() [1/3]

template<typename T , require_integral_t< T > * = nullptr>
T stan::math::to_int ( x)
inline

Returns the input scalar as an integer type.

Specialization for integral types which do not need conversion, reduces to a no-op.

Template Parameters
Ttype of integral argument
Parameters
xargument
Returns
Input argument unchanged

Definition at line 19 of file to_int.hpp.