1#ifndef STAN_MATH_REV_FUN_FMOD_HPP
2#define STAN_MATH_REV_FUN_FMOD_HPP
25 bvi_->adj_ -= adj_ * std::trunc(
avi_->val_ /
bvi_->val_);
51 int d = std::trunc(
ad_ /
bvi_->val_);
52 bvi_->adj_ -= adj_ * d;
fmod_dv_vari(double a, vari *bvi)
fmod_vd_vari(vari *avi, double b)
fmod_vv_vari(vari *avi, vari *bvi)
static constexpr double NOT_A_NUMBER
(Quiet) not-a-number value.
fvar< T > fmod(const fvar< T > &x1, const fvar< T > &x2)
bool is_any_nan(const T &x)
Returns true if the input is NaN and false otherwise.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...