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