template <class T> class basicplx Complex number template class.
| | basicplx () Default constructor. |
| | ~basicplx () Destructor. |
| | basicplx (const basicplx<U>& rhs) Copy constructor. |
| | basicplx (T Re, T Im=0.0) Initializing constructor. |
| | operator= (const basicplx<U>& rhs) Assignment operator. |
| | operator+= (const basicplx &rhs) Add a complex number. |
| | operator-= (const basicplx &rhs) Subtract a complex number. |
| | operator*= (const basicplx &rhs) Complex * Complex. |
| | operator*= (math_type rhs) Complex * float. |
| | operator/= (const basicplx &rhs) Complex / Complex. |
| | operator/= (math_type rhs) Complex / float. |
| | operator== (const basicplx& y) const Compare two complex numbers. |
| | operator!= (const basicplx& y) const Compare two complex numbers. |
| | operator! (void) const Test for complex variable equal to zero. |
| | operator~ (void) const Complex conjugation. |
| | operator- (void) const Unary negate. |
| | setMArg (math_type mag, math_type arg) Set a complex from magnitude and argument. |
| | xcc (const basicplx& rhs) Multiply by ~arg. |
| | MagSq (void) const Magnitude Squared. |
| | Mag (void) const Magnitude. |
| | Arg (void) const Argument. |
| | Real () const Real Part. |
| | Imag () const Imaginary Part. |
| | Swap (basicplx& x) Swap two Complex numbers. |
basicplx implements complex data type by means f the template mechanism. All functions are in-line to maximize efficiency.
~basicplx()
template <class U> basicplx(const basicplx<U>& rhs)
basicplx(T Re, T Im=0.0)
template <class U> basicplx& operator=(const basicplx<U>& rhs)
basicplx& operator+=(const basicplx &rhs)
basicplx& operator-=(const basicplx &rhs)
basicplx& operator*=(const basicplx &rhs)
basicplx& operator*=(math_type rhs)
basicplx& operator/=(const basicplx &rhs)
basicplx& operator/=(math_type rhs)
bool operator==(const basicplx& y) const
bool operator!=(const basicplx& y) const
bool operator!(void) const
basicplx operator~(void) const
basicplx operator-(void) const
basicplx& setMArg(math_type mag, math_type arg)
basicplx& xcc(const basicplx& rhs)
math_type MagSq(void) const
math_type Mag(void) const
math_type Arg(void) const
T Real() const
T Imag() const
void Swap(basicplx& x)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++