Functions | |
template<typename Distance , typename V , typename S > | |
void | check_distance (const Distance &dist, const V &vec1, const V &vec2, const S &ref_val) |
template<typename V , typename S > | |
void | check_l1_norm_and_distance (const V &vec1, const V &vec2, const S &ref_val) |
template<typename V , typename S > | |
void | check_l2_norm_and_distance (const V &vec1, const V &vec2, const S &ref_val) |
template<typename V , typename S > | |
void | check_linfty_norm_and_distance (const V &vec1, const V &vec2, const S &ref_val) |
template<typename Norm , typename V > | |
void | check_norm (const Norm &norm, const V &vec1, const V &vec2) |
void test::check_distance | ( | const Distance & | dist, | |
const V & | vec1, | |||
const V & | vec2, | |||
const S & | ref_val | |||
) |
Definition at line 51 of file common.hh.
References mln::math::abs().
Referenced by check_l1_norm_and_distance(), check_l2_norm_and_distance(), and check_linfty_norm_and_distance().
void test::check_l1_norm_and_distance | ( | const V & | vec1, | |
const V & | vec2, | |||
const S & | ref_val | |||
) |
Definition at line 36 of file l1.cc.
References check_distance(), and check_norm().
void test::check_l2_norm_and_distance | ( | const V & | vec1, | |
const V & | vec2, | |||
const S & | ref_val | |||
) |
Definition at line 39 of file l2.cc.
References check_distance(), and check_norm().
void test::check_linfty_norm_and_distance | ( | const V & | vec1, | |
const V & | vec2, | |||
const S & | ref_val | |||
) |
Definition at line 37 of file linfty.cc.
References check_distance(), and check_norm().
void test::check_norm | ( | const Norm & | norm, | |
const V & | vec1, | |||
const V & | vec2 | |||
) |
Definition at line 44 of file common.hh.
References mln::math::abs().
Referenced by check_l1_norm_and_distance(), check_l2_norm_and_distance(), and check_linfty_norm_and_distance().