1 #ifndef NPSTAT_ABSDIFFERENCE_HH_ 2 #define NPSTAT_ABSDIFFERENCE_HH_ 18 #include "Alignment/Geners/interface/IOIsUnsigned.hh" 53 template <
typename T,
int Un
signed=0>
58 inline static return_type
delta(
const T& v1,
const T& v2)
61 inline static return_type
value(
const T& v1)
71 inline static return_type
delta(
const T& v1,
const T& v2)
72 {
return v1 > v2 ? v1 - v2 : v2 - v1;}
74 inline static return_type
value(
const T& v1)
102 #endif // NPSTAT_ABSDIFFERENCE_HH_
static return_type delta(const T &v1, const T &v2)
static return_type value(const T &v1)
Private::AbsReturnType< T >::type absDifference(const T &v1, const T &v2)
static return_type value(const T &v1)
Private::AbsReturnType< T >::type return_type
Abs< T >::type abs(const T &t)
Private::AbsReturnType< T >::type absValue(const T &v1)
Private::AbsReturnType< T >::type return_type
static return_type delta(const T &v1, const T &v2)