CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
npstat::ComplexComparesFalse< T > Struct Template Reference

#include <ComplexComparesFalse.h>

Static Public Member Functions

static bool less (const T &l, const T &r)
 
static bool more (const T &l, const T &r)
 

Detailed Description

template<class T>
struct npstat::ComplexComparesFalse< T >

This template compares two numbers. For simple numeric types (int, double, etc) the numbers themselves are compared while for std::complex<...> types "false" is returned for every comparison.

Definition at line 23 of file ComplexComparesFalse.h.

Member Function Documentation

template<class T >
static bool npstat::ComplexComparesFalse< T >::less ( const T l,
const T r 
)
inlinestatic

Definition at line 25 of file ComplexComparesFalse.h.

References alignCSCRings::r.

Referenced by npstat::ArrayND< Numeric, StackLen, StackDim >::isDensity().

26  {return l < r;}
template<class T >
static bool npstat::ComplexComparesFalse< T >::more ( const T l,
const T r 
)
inlinestatic

Definition at line 28 of file ComplexComparesFalse.h.

References alignCSCRings::r.

29  {return l > r;}