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