Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Returns the squared distance between the specified vectors of the same dimensions.
EigVec1 | type of the first vector (must be derived from Eigen::MatrixBase and have one compile time dimension equal to 1) |
EigVec2 | type of the second vector (must be derived from Eigen::MatrixBase and have one compile time dimension equal to 1) |
v1 | First vector. |
v2 | Second vector. |
std::domain_error | If the vectors are not the same size. |
Definition at line 50 of file squared_distance.hpp.