Returns the distance between two scalars.
Returns the distance between the specified vectors.
- Template Parameters
-
T1 | type of first scalar. |
T2 | type of second scalar |
- Parameters
-
x1 | First scalar. |
x2 | Second scalar. |
- Returns
- Distance between two scalars
- Exceptions
-
std::domain_error | If the arguments are not finite. |
- Template Parameters
-
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) |
- Parameters
-
x1 | First vector. |
x2 | Second vector. |
- Returns
- Distance between the vectors.
- Exceptions
-
std::domain_error | If the vectors are not the same size. |
Definition at line 27 of file distance.hpp.