npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
absDifference.hh File Reference

Calculate absolute value of a difference between two numbers for an extended set of types. More...

#include <cmath>
#include <complex>
#include "geners/IOIsUnsigned.hh"

Go to the source code of this file.

Classes

struct  npstat::Private::AbsReturnType< T >
 
struct  npstat::Private::AbsReturnType< std::complex< T > >
 
struct  npstat::Private::AbsReturnType< const std::complex< T > >
 
struct  npstat::Private::AbsReturnType< volatile std::complex< T > >
 
struct  npstat::Private::AbsReturnType< const volatile std::complex< T > >
 
struct  npstat::Private::AbsHelper< T, Unsigned >
 
struct  npstat::Private::AbsHelper< T, 1 >
 

Namespaces

 npstat
 

Functions

template<typename T >
Private::AbsReturnType< T >::type npstat::absDifference (const T &v1, const T &v2)
 
template<typename T >
Private::AbsReturnType< T >::type npstat::absValue (const T &v1)
 

Detailed Description

Calculate absolute value of a difference between two numbers for an extended set of types.

Author: I. Volobouev

October 2009