1 #ifndef STAN__AGRAD__REV__FUNCTIONS__ROUND_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__ROUND_HPP
7 #include <boost/math/special_functions/fpclassify.hpp>
13 class round_vari :
public op_v_vari {
15 round_vari(vari* avi) :
16 op_v_vari(::
round(avi->val_),avi) {
20 avi_->adj_ = std::numeric_limits<double>::quiet_NaN();
58 return var(
new round_vari(a.
vi_));
bool isnan(const stan::agrad::var &v)
Checks if the given number is NaN.
vari * vi_
Pointer to the implementation of this variable.
fvar< T > round(const fvar< T > &x)
Independent (input) and dependent (output) variables for gradients.