6 #ifndef CHEBYSHEV_DISTANCE_H
7 #define CHEBYSHEV_DISTANCE_H
18 template<
typename FloatType =
double>
21 const FloatType diff = b - a;
22 return (diff > 0) ? diff : -diff;
FloatType abs_distance(FloatType a, FloatType b)
Absolute distance between two real values.
Definition: distance.h:19
General namespace of the framework.
Definition: benchmark_structures.h:16
complex< T > distance(const vec< complex< T >, N > &v1, const vec< complex< T >, N > &v2)
Compute the Hermitian distance between two vectors: .
Definition: distance.h:225