PCL
Complex Relational Operators

Functions

template<typename T1 , class T2 >
bool pcl::operator< (const Complex< T1 > &c, T2 x) noexcept
 
template<typename T1 , class T2 >
bool pcl::operator< (const Complex< T1 > &c1, const Complex< T2 > &c2) noexcept
 
template<typename T1 , class T2 >
bool pcl::operator< (T1 x, const Complex< T2 > &c) noexcept
 
template<typename T1 , class T2 >
bool pcl::operator== (const Complex< T1 > &c, T2 x) noexcept
 
template<typename T1 , class T2 >
bool pcl::operator== (const Complex< T1 > &c1, const Complex< T2 > &c2) noexcept
 
template<typename T1 , class T2 >
bool pcl::operator== (T1 x, const Complex< T2 > &c) noexcept
 

Detailed Description

The elements of the complex plane don't follow any particular "natural" order. Of course, our definitions of the <, <=, > and >= operators for complex numbers are completely arbitrary: we just compare complex magnitudes. This effectively sorts complex numbers by concentric circles around the origin.

Function Documentation

◆ operator<() [1/3]

template<typename T1 , class T2 >
bool pcl::operator< ( const Complex< T1 > &  c,
T2  x 
)
inlinenoexcept

Returns true iff a complex number c is less than a real number x.

Definition at line 911 of file Complex.h.

References pcl::Abs().

◆ operator<() [2/3]

template<typename T1 , class T2 >
bool pcl::operator< ( const Complex< T1 > &  c1,
const Complex< T2 > &  c2 
)
inlinenoexcept

Returns true iff a complex number c1 is less than other complex c2.

Definition at line 901 of file Complex.h.

◆ operator<() [3/3]

template<typename T1 , class T2 >
bool pcl::operator< ( T1  x,
const Complex< T2 > &  c 
)
inlinenoexcept

Returns true iff a real number x is less than a complex number c.

Definition at line 921 of file Complex.h.

References pcl::Abs().

◆ operator==() [1/3]

template<typename T1 , class T2 >
bool pcl::operator== ( const Complex< T1 > &  c,
T2  x 
)
inlinenoexcept

Returns true iff a complex number c is equal to a real x.

Definition at line 881 of file Complex.h.

◆ operator==() [2/3]

template<typename T1 , class T2 >
bool pcl::operator== ( const Complex< T1 > &  c1,
const Complex< T2 > &  c2 
)
inlinenoexcept

Returns true iff two complex numbers c1 and c2 are equal.

Definition at line 871 of file Complex.h.

◆ operator==() [3/3]

template<typename T1 , class T2 >
bool pcl::operator== ( T1  x,
const Complex< T2 > &  c 
)
inlinenoexcept

Returns true iff a real number x is equal to a complex c.

Definition at line 891 of file Complex.h.