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

◆ round() [1/6]

template<typename T >
fvar< T > stan::math::round ( const fvar< T > &  x)
inline

Return the closest integer to the specified argument, with halfway cases rounded away from zero.

The derivative is always zero.

Template Parameters
Tinner type of the fvar
Parameters
xArgument.
Returns
The rounded value of the argument.

Definition at line 24 of file round.hpp.