PCL
Complex Arithmetic Operators

Functions

template<typename T1 , class T2 >
Complex< T1 > pcl::operator* (const Complex< T1 > &c1, const Complex< T2 > &c2)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::operator* (const Complex< T1 > &c, T2 x)
 
template<typename T1 , class T2 >
Complex< T2 > pcl::operator* (T1 x, const Complex< T2 > &c)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::operator+ (const Complex< T1 > &c1, const Complex< T2 > &c2)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::operator+ (const Complex< T1 > &c, T2 x)
 
template<typename T1 , class T2 >
Complex< T2 > pcl::operator+ (T1 x, const Complex< T2 > &c)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::operator- (const Complex< T1 > &c1, const Complex< T2 > &c2)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::operator- (const Complex< T1 > &c, T2 x)
 
template<typename T1 , class T2 >
Complex< T2 > pcl::operator- (T1 x, const Complex< T2 > &c)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::operator/ (const Complex< T1 > &c1, const Complex< T2 > &c2)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::operator/ (const Complex< T1 > &c, T2 x)
 
template<typename T1 , class T2 >
Complex< T2 > pcl::operator/ (T1 x, const Complex< T2 > &c)
 
template<typename T1 , class T2 >
Complex< T1 > pcl::Pow (const Complex< T1 > &c, T2 x)
 
template<typename T1 , class T2 >
Complex< T2 > pcl::Pow (T1 x, const Complex< T2 > &c)
 
template<typename T >
Complex< T > pcl::Pow (const Complex< T > &c1, const Complex< T > &c2)
 

Detailed Description

Function Documentation

◆ operator*() [1/3]

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

Complex multiplication. Returns the multiplication of two complex numbers c1 and c2.

Definition at line 539 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator*() [2/3]

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

Complex multiplication. Returns the multiplication of a complex number c and a real x.

Note
The commutativity of complex-real multiplication is implemented by the existence of this function along with operator *( T1, const Complex<T2>& ).

Definition at line 556 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator*() [3/3]

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

Complex multiplication. Returns the multiplication of a real number x and a complex c.

Note
The commutativity of complex-real multiplication is implemented by the existence of this function along with operator *( const Complex<T1>&, T2 ).

Definition at line 572 of file Complex.h.

◆ operator+() [1/3]

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

Complex addition. Returns the sum of two complex numbers c1 and c2.

Definition at line 455 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

Referenced by pcl::operator+(), and pcl::IsoString::UTF8ToUTF16().

◆ operator+() [2/3]

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

Complex addition. Returns the sum of a complex number c and a real x.

Note
The commutativity of complex-real addition is implemented by the existence of this function along with operator +( T1, const Complex<T2>& ).

Definition at line 470 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator+() [3/3]

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

Complex addition. Returns the sum of a real number x and a complex c.

Note
The commutativity of complex-real addition is implemented by the existence of this function along with operator +( const Complex<T1>&, T2 ).

Definition at line 484 of file Complex.h.

◆ operator-() [1/3]

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

Complex subtraction. Returns the difference between two complex numbers c1 and c2.

Definition at line 495 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator-() [2/3]

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

Complex subtraction. Returns the difference between a complex number c and a real x.

Note
The noncommutativity of complex-real subtraction is implemented by the existence of this function along with operator -( T1, const Complex<T2>& ).

Definition at line 512 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator-() [3/3]

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

Complex subtraction. Returns the difference between a real number x and a complex c.

Note
The noncommutativity of complex-real subtraction is implemented by the existence of this function along with operator -( const Complex<T1>&, T2 ).

Definition at line 528 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator/() [1/3]

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

Complex division. Returns the division between two complex numbers c1 and c2.

Definition at line 583 of file Complex.h.

References pcl::Abs(), pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator/() [2/3]

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

Complex division. Returns the division of a complex number c by a real x.

Note
The noncommutativity of complex-real division is implemented by the existence of this function along with operator /( T1, const Complex<T2>& ).

Definition at line 617 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ operator/() [3/3]

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

Complex division. Returns the division of a real number x and a complex c.

Note
The noncommutativity of complex-real division is implemented by the existence of this function along with operator /( const Complex<T1>&, T2 ).

Definition at line 634 of file Complex.h.

References pcl::Abs(), pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

◆ Pow() [1/3]

template<typename T1 , class T2 >
Complex<T1> pcl::Pow ( const Complex< T1 > &  c,
T2  x 
)
inline

Complex exponentiation. Returns a complex number c raised to a real x.

Definition at line 738 of file Complex.h.

References pcl::Exp(), pcl::Complex< T >::Imag(), pcl::Ln(), and pcl::Complex< T >::Real().

Referenced by pcl::VariableShapeFilter::FWHMx(), and pcl::Pow().

◆ Pow() [2/3]

template<typename T1 , class T2 >
Complex<T2> pcl::Pow ( T1  x,
const Complex< T2 > &  c 
)
inline

Complex exponentiation. Returns a real number x raised to a complex c.

Definition at line 751 of file Complex.h.

References pcl::Exp(), pcl::Complex< T >::Imag(), pcl::Ln(), pcl::Pow(), and pcl::Complex< T >::Real().

◆ Pow() [3/3]

template<typename T >
Complex<T> pcl::Pow ( const Complex< T > &  c1,
const Complex< T > &  c2 
)
inline

Complex exponentiation. Returns a complex number c1 raised to a complex c2.

Definition at line 765 of file Complex.h.

References pcl::Exp(), pcl::Complex< T >::Imag(), pcl::Ln(), pcl::Pow(), and pcl::Complex< T >::Real().