Automatic Differentiation
 
Loading...
Searching...
No Matches
round.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_FUN_ROUND_HPP
2#define STAN_MATH_REV_FUN_ROUND_HPP
3
9
10namespace stan {
11namespace math {
12
43inline var round(const var& a) { return var(round(a.val())); }
44
45} // namespace math
46} // namespace stan
47#endif
var_value< double > var
Definition var.hpp:1187
fvar< T > round(const fvar< T > &x)
Return the closest integer to the specified argument, with halfway cases rounded away from zero.
Definition round.hpp:24
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...