CMS 3D CMS Logo

Static Public Member Functions

npstat::ComplexComparesFalse< T > Struct Template Reference

#include <ComplexComparesFalse.h>

List of all members.

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 
) [inline, static]

Definition at line 25 of file ComplexComparesFalse.h.

References alignCSCRings::r.

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

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

Definition at line 28 of file ComplexComparesFalse.h.

References alignCSCRings::r.

            {return l > r;}