1#ifndef STAN_MATH_REV_FUN_FDIM_HPP
2#define STAN_MATH_REV_FUN_FDIM_HPP
17 :
op_vv_vari(avi->val_ - bvi->val_, avi, bvi) {}
94 return (a.vi_->val_ <= b.vi_->val_)
113 return a <= b.vi_->val_ ?
var(
new vari(0.0))
130 return a.vi_->val_ <= b ?
var(
new vari(0.0))
fdim_dv_vari(double a, vari *bvi)
fdim_vd_vari(vari *avi, double b)
fdim_vv_vari(vari *avi, vari *bvi)
fvar< T > fdim(const fvar< T > &x, const fvar< T > &y)
Return the positive difference of the specified values (C++11).
static constexpr double NOT_A_NUMBER
(Quiet) not-a-number value.
vari_value< double > vari
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 ...