Stan Math Library
4.9.0
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
4
#include <
stan/math/rev/meta.hpp
>
5
#include <
stan/math/rev/core.hpp
>
6
#include <
stan/math/prim/fun/constants.hpp
>
7
#include <
stan/math/prim/fun/is_nan.hpp
>
8
#include <
stan/math/prim/fun/round.hpp
>
9
10
namespace
stan
{
11
namespace
math {
12
43
inline
var
round
(
const
var
& a) {
return
var
(
round
(a.val())); }
44
45
}
// namespace math
46
}
// namespace stan
47
#endif
stan::math::var_value< double >
constants.hpp
stan::math::var
var_value< double > var
Definition
var.hpp:1187
stan::math::round
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
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
is_nan.hpp
round.hpp
core.hpp
meta.hpp
stan
math
rev
fun
round.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.