6#ifndef CHEBYSHEV_DISTANCE_H
7#define CHEBYSHEV_DISTANCE_H
14 template<
typename Type>
16 return (
x > 0) ?
x : -
x;
26 template<
typename Type = real_t>
28 return prec_t(_internal::abs(b - a));
long double prec_t
Floating-point type of higher precision, used in computations, such as error estimation.
Definition common.h:42
prec_t abs_distance(Type a, Type b)
Absolute distance between two real values.
Definition distance.h:27
General namespace of the framework.
Definition benchmark.h:22
constexpr FloatType get_nan()
Get a quiet NaN of the specified floating point type.
Definition common.h:65