Openholo
v5.0
Open Source Digital Holographic Library
|
class for the complex number and its arithmetic. type T == type cplx type only float || double T real() : real number T imag() : imaginary number More...
#include <complex.h>
Public Types | |
using | cplx = typename std::enable_if< std::is_same< double, T >::value||std::is_same< float, T >::value||std::is_same< long double, T >::value, T >::type |
Public Member Functions | |
Complex () | |
Complex (T p) | |
Complex (T tRe, T tIm) | |
Complex (const Complex< T > &p) | |
T | mag2 () const |
T | mag () const |
T | arg () const |
void | euler (T &r, T &theta) |
T | angle (void) |
Complex< T > & | exp () |
Complex< T > | conj () const |
Complex< T > & | operator() (T re, T im) |
Complex< T > & | operator= (const Complex< T > &p) |
Complex< T > & | operator= (const T &p) |
Complex< T > | operator+ (const Complex< T > &p) |
Complex< T > & | operator+= (const Complex< T > &p) |
Complex< T > | operator+ (const T p) |
Complex< T > & | operator+= (const T p) |
Complex< T > | operator- (const Complex< T > &p) |
Complex< T > & | operator-= (const Complex< T > &p) |
Complex< T > | operator- (const T p) |
Complex< T > & | operator-= (const T p) |
Complex< T > | operator* (const T k) |
Complex< T > & | operator*= (const T k) |
Complex< T > & | operator= (const std::complex< T > &p) |
Complex< T > | operator* (const Complex< T > &p) |
Complex< T > & | operator*= (const Complex< T > &p) |
Complex< T > | operator/ (const T &p) |
Complex< T > & | operator/= (const T k) |
Complex< T > | operator/ (const Complex< T > &p) |
Complex< T > & | operator/= (const Complex< T > &p) |
T & | operator[] (const int idx) |
bool | operator< (const Complex< T > &p) |
bool | operator> (const Complex< T > &p) |
operator unsigned char () | |
operator int () | |
Friends | |
Complex< T > | operator+ (const Complex< T > &p, const T q) |
Complex< T > | operator- (const Complex< T > &p, const T q) |
Complex< T > | operator* (const T k, const Complex< T > &p) |
Complex< T > | operator* (const Complex< T > &p, const T k) |
Complex< T > | operator* (const Complex< T > &p, const Complex< T > &q) |
Complex< T > | operator/ (const Complex< T > &p, const Complex< T > &q) |
Complex< T > | operator/ (const Complex< T > &p, const T &q) |
Complex< T > | operator/ (const T &p, const Complex< T > &q) |
bool | operator< (const Complex< T > &p, const Complex< T > &q) |
bool | operator> (const Complex< T > &p, const Complex< T > &q) |
class for the complex number and its arithmetic. type T == type cplx type only float || double T real() : real number T imag() : imaginary number
using oph::Complex< T >::cplx = typename std::enable_if<std::is_same<double, T>::value || std::is_same<float, T>::value || std::is_same<long double, T>::value, T>::type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |