1 #ifndef STAN_MATH_REV_SCAL_FUN_SQUARED_DISTANCE_HPP
2 #define STAN_MATH_REV_SCAL_FUN_SQUARED_DISTANCE_HPP
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
scal_squared_distance_vd_vari(vari *avi, double b)
The variable implementation base class.
Independent (input) and dependent (output) variables for gradients.
scal_squared_distance_vv_vari(vari *avi, vari *bvi)
const double val_
The value of this variable.
fvar< T > squared_distance(const Eigen::Matrix< fvar< T >, R, C > &v1, const Eigen::Matrix< double, R, C > &v2)
Returns the squared distance between the specified vectors of the same dimensions.
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. ...
scal_squared_distance_dv_vari(double a, vari *bvi)
double adj_
The adjoint of this variable, which is the partial derivative of this variable with respect to the ro...