1 #ifndef STAN_MATH_REV_SCAL_FUN_FLOOR_HPP
2 #define STAN_MATH_REV_SCAL_FUN_FLOOR_HPP
14 class floor_vari :
public op_v_vari {
16 explicit floor_vari(vari* avi) :
17 op_v_vari(
std::
floor(avi->val_), avi) {
21 avi_->adj_ = std::numeric_limits<double>::quiet_NaN();
61 return var(
new floor_vari(a.
vi_));
Independent (input) and dependent (output) variables for gradients.
vari * vi_
Pointer to the implementation of this variable.
fvar< T > floor(const fvar< T > &x)
int is_nan(const fvar< T > &x)
Returns 1 if the input's value is NaN and 0 otherwise.