Public Member Functions | List of all members
ComplexLess< T > Class Template Reference

Function-type-object to perform comparison of complex data types Needed to sort the complex eigenvalues into order based on the size of the real part. More...

Public Member Functions

bool operator() (const complex< T > &x, const complex< T > &y) const
 Comparison in terms of magnitude of complex number. More...
 
bool operator() (const complex< T > &x, const complex< T > &y) const
 Comparison. Are the values identical or not? More...
 

Detailed Description

template<class T>
class ComplexLess< T >

Function-type-object to perform comparison of complex data types Needed to sort the complex eigenvalues into order based on the size of the real part.

Definition at line 56 of file complex_harmonic.cc.

Member Function Documentation

◆ operator()() [1/2]

template<class T >
bool ComplexLess< T >::operator() ( const complex< T > &  x,
const complex< T > &  y 
) const
inline

Comparison in terms of magnitude of complex number.

Definition at line 61 of file complex_harmonic.cc.

◆ operator()() [2/2]

template<class T >
bool ComplexLess< T >::operator() ( const complex< T > &  x,
const complex< T > &  y 
) const
inline

Comparison. Are the values identical or not?

Definition at line 51 of file harmonic.cc.


The documentation for this class was generated from the following files: