Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Returns the squared distance.
Scal1 | Type of the first scalar. |
Scal2 | Type of the second scalar. |
x1 | First scalar. |
x2 | Second scalar. |
std::domain_error | Any scalar is not finite. |
Definition at line 26 of file squared_distance.hpp.