PCL
Complex Arithmetic Operators

Functions

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

Detailed Description

Function Documentation

◆ operator*() [1/3]

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

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 565 of file Complex.h.

◆ operator*() [2/3]

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

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

Definition at line 548 of file Complex.h.

◆ operator*() [3/3]

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

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 581 of file Complex.h.

◆ operator+() [1/3]

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

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 479 of file Complex.h.

◆ operator+() [2/3]

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

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

Definition at line 464 of file Complex.h.

◆ operator+() [3/3]

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

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 493 of file Complex.h.

◆ operator-() [1/3]

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

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 521 of file Complex.h.

◆ operator-() [2/3]

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

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

Definition at line 504 of file Complex.h.

◆ operator-() [3/3]

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

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 537 of file Complex.h.

◆ operator/() [1/3]

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

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 626 of file Complex.h.

◆ operator/() [2/3]

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

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

Definition at line 592 of file Complex.h.

References pcl::Abs(), 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 
)
inlinenoexcept

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 643 of file Complex.h.

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

◆ Pow() [1/3]

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

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

Definition at line 774 of file Complex.h.

References pcl::Exp(), pcl::Ln(), and pcl::Pow().

◆ Pow() [2/3]

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

◆ Pow() [3/3]

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

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

Definition at line 760 of file Complex.h.

References pcl::Exp(), pcl::Ln(), and pcl::Pow().