PCL
|
Generic complex number. More...
#include <Complex.h>
Public Types | |
using | component = T |
Public Member Functions | |
Complex ()=default | |
template<typename T1 > | |
Complex (const Complex< T1 > &c) noexcept | |
Complex (T r, T i=0) noexcept | |
constexpr T | Arg () const noexcept |
Complex< T > | Conj () const noexcept |
constexpr T | Imag () const noexcept |
T & | Imag () noexcept |
constexpr bool | IsReal () const noexcept |
T | Mag () const noexcept |
constexpr T | Norm () const noexcept |
operator double () const noexcept | |
operator int () const noexcept | |
template<typename T1 > | |
Complex< T > & | operator*= (const Complex< T1 > &c) noexcept |
template<typename T1 > | |
Complex< T > & | operator*= (T1 x) noexcept |
Complex< T > | operator+ () const noexcept |
template<typename T1 > | |
Complex< T > & | operator+= (const Complex< T1 > &c) noexcept |
template<typename T1 > | |
Complex< T > & | operator+= (T1 x) noexcept |
Complex< T > | operator- () const noexcept |
template<typename T1 > | |
Complex< T > & | operator-= (const Complex< T1 > &c) noexcept |
template<typename T1 > | |
Complex< T > & | operator-= (T1 x) noexcept |
template<typename T1 > | |
Complex< T > & | operator/= (const Complex< T1 > &c) noexcept |
template<typename T1 > | |
Complex< T > & | operator/= (T1 x) noexcept |
template<typename T1 > | |
Complex< T > & | operator= (const Complex< T1 > &c) noexcept |
template<typename T1 > | |
Complex< T > & | operator= (T1 x) noexcept |
Complex< T > | operator~ () const noexcept |
constexpr T | Real () const noexcept |
T & | Real () noexcept |
void | SetConj () noexcept |
Complex is a careful implementation of complex numbers, including efficient computations of complex arithmetic and transcendental functions.
When instantiated for the double
and float
types, the generated classes are binary-compatible with the C99 complex standard structure.
using pcl::Complex< T >::component = T |
|
default |
Constructs an uninitialized complex number. The real and imaginary components will have unpredictable values.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
Returns a copy of the imaginary component of this complex number.
Definition at line 136 of file Complex.h.
Referenced by pcl::IsoString::IsoString(), and pcl::operator/().
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitnoexcept |
Explicit conversion operator to double.
Returns the complex magnitude or modulus of this complex number, so this operator is equivalent to Mag() const.
|
inlineexplicitnoexcept |
Explicit conversion operator to int.
Returns the complex magnitude or modulus of this complex number truncated to an integer, so this operator is equivalent to int( Mag() ).
Definition at line 379 of file Complex.h.
References pcl::TruncInt().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
Returns a copy of the real component of this complex number.
Definition at line 120 of file Complex.h.
Referenced by pcl::IsoString::IsoString(), and pcl::operator/().
|
inlinenoexcept |
|
inlinenoexcept |