![]() |
Stan Math Library
5.3.0
Automatic Differentiation
|
|
inline |
Returns the distance between the specified vectors.
| T1 | type of the first vector (must be derived from Eigen::MatrixBase and have one compile time dimension equal to 1) |
| T2 | type of the second vector (must be derived from Eigen::MatrixBase and have one compile time dimension equal to 1) |
| x1 | First vector. |
| x2 | Second vector. |
| std::domain_error | If the vectors are not the same size. |
Definition at line 47 of file distance.hpp.