1 #ifndef STAN_MATH_REV_SCAL_FUN_HYPOT_HPP 2 #define STAN_MATH_REV_SCAL_FUN_HYPOT_HPP
fvar< T > hypot(const fvar< T > &x1, const fvar< T > &x2)
Return the length of the hypoteneuse of a right triangle with opposite and adjacent side lengths give...
The variable implementation base class.
Independent (input) and dependent (output) variables for gradients.
const double val_
The value of this variable.
vari * vi_
Pointer to the implementation of this variable.
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
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...
hypot_vd_vari(vari *avi, double b)
hypot_vv_vari(vari *avi, vari *bvi)