1 #ifndef STAN_MATH_REV_SCAL_FUN_FDIM_HPP 2 #define STAN_MATH_REV_SCAL_FUN_FDIM_HPP 19 avi_->
adj_ = std::numeric_limits<double>::quiet_NaN();
20 bvi_->
adj_ = std::numeric_limits<double>::quiet_NaN();
33 avi_->
adj_ = std::numeric_limits<double>::quiet_NaN();
44 bvi_->
adj_ = std::numeric_limits<double>::quiet_NaN();
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
fdim_dv_vari(double a, vari *bvi)
The variable implementation base class.
bool is_any_nan(const T &x)
Returns true if the input is NaN and false otherwise.
Independent (input) and dependent (output) variables for gradients.
const double val_
The value of this variable.
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
fvar< T > fdim(const fvar< T > &x, const fvar< T > &y)
Return the positive difference of the specified values (C++11).
fdim_vv_vari(vari *avi, vari *bvi)
vari * vi_
Pointer to the implementation of this variable.
fdim_vd_vari(vari *avi, double b)
vari(double x)
Construct a variable implementation from a value.
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
double adj_
The adjoint of this variable, which is the partial derivative of this variable with respect to the ro...