GLAC
1.0
|
A complex number class, consisting of t. More...
#include <complex.h>
Public Member Functions | |
complex () | |
~complex () | |
complex (double real, double imag) | |
complex (const complex &b) | |
double | re () const |
double | im () const |
void | setRe (double re) |
void | setIm (double im) |
complex & | operator= (const complex &b) |
complex & | operator+= (complex b) |
complex & | operator+= (double b) |
complex & | operator-= (complex b) |
complex & | operator-= (double b) |
complex & | operator *= (complex b) |
complex & | operator *= (double b) |
complex & | operator/= (complex b) |
complex & | operator/= (double b) |
complex | operator- () const |
double | norm () |
double | normSquared () |
complex | conjugate () |
complex::conjugate More... | |
complex | c () |
complex::c More... | |
complex | zeros () |
Data Fields | |
double | z [2] |
Friends | |
std::ostream & | operator<< (std::ostream &os, const complex &a) |
A complex number class, consisting of t.
complex::complex | ( | ) |
complex::~complex | ( | ) |
complex::complex | ( | double | real, |
double | imag | ||
) |
complex::complex | ( | const complex & | b | ) |
complex complex::c | ( | ) |
complex complex::conjugate | ( | ) |
|
inline |
double complex::norm | ( | ) |
double complex::normSquared | ( | ) |
complex & complex::operator *= | ( | double | b | ) |
complex & complex::operator+= | ( | double | b | ) |
complex complex::operator- | ( | ) | const |
complex & complex::operator-= | ( | double | b | ) |
complex & complex::operator/= | ( | double | b | ) |
|
inline |
|
inline |
|
inline |
complex complex::zeros | ( | ) |
|
friend |
double complex::z[2] |