Functions

test Namespace Reference

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)

Function Documentation

template<typename Distance , typename V , typename S >
void test::check_distance ( const Distance &  dist,
const V &  vec1,
const V &  vec2,
const S &  ref_val 
)
template<typename V , typename S >
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().

template<typename V , typename S >
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().

template<typename V , typename S >
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().

template<typename Norm , typename V >
void test::check_norm ( const Norm &  norm,
const V &  vec1,
const V &  vec2 
)