27 #ifndef TESTS_NORM_COMMON_HH
28 # define TESTS_NORM_COMMON_HH
32 #include <mln/math/abs.hh>
36 static const float epsilon = 0.0001f;
42 template <
typename Norm,
typename V>
44 check_norm(
const Norm& norm,
const V& vec1,
const V& vec2)
49 template <
typename Distance,
typename V,
typename S>
55 - static_cast<float>(ref_val));
56 assert(delta < epsilon);
62 #endif // ! TESTS_NORM_COMMON_HH