golib
0.5
|
Complex number class. More...
#include <gocomplex.h>
Public Member Functions | |
goComplex (T r, T i=T(0)) | |
goComplex (const goComplex< T > &other) | |
T & | re () |
T & | im () |
const T & | re () const |
const T & | im () const |
operator T () | |
goComplex< T > | operator* (const goComplex< T > &other) const |
goComplex< T > & | operator*= (const goComplex< T > &other) |
goComplex< T > | operator+ (const goComplex< T > &other) const |
goComplex< T > & | operator+= (const goComplex< T > &other) |
goComplex< T > | operator- (const goComplex< T > &other) const |
goComplex< T > & | operator-= (const goComplex< T > &other) |
goComplex< T > | operator/ (const goComplex< T > &other) const |
goComplex< T > & | operator/= (const goComplex< T > &other) |
goComplex< T > & | operator= (const goComplex< T > &other) |
bool | operator== (const goComplex< T > &other) const |
bool | operator!= (const goComplex< T > &other) const |
bool | operator> (const goComplex< T > &other) const |
bool | operator< (const goComplex< T > &other) const |
void | conjugate () |
make conjugate complex number | |
goComplex< T > | conj () const |
goDouble | arg () const |
goDouble | abs () const |
Protected Attributes | |
T | real |
T | ima |
Complex number class.
|
inline |
Calculate the absolute value of the complex number.
|
inline |
Calculate the argument (phase angle) of the complex number.