|
| Complex () |
| Empty, set complex to zero.
|
|
| Complex (const double &, const double &=0.0) |
| Create a complex number. More...
|
|
constexpr double & | operator[] (int) |
| Overloaded. More...
|
|
constexpr const double & | operator[] (int) const |
| Overloaded.
|
|
Complex | operator+ () const |
| Overloaded.
|
|
Complex | operator- () const |
| Overloaded.
|
|
Complex & | operator+= (const Complex &) |
| Overloaded.
|
|
Complex & | operator-= (const Complex &) |
| Overloaded.
|
|
Complex & | operator*= (const Complex &) |
| Overloaded.
|
|
Complex & | operator*= (const double &) |
| Overloaded.
|
|
Complex & | operator/= (const double &) |
| Overloaded.
|
|
double | Arg () const |
| Returns the argument of a complex.
|
|
Complex | Conj () const |
| Computes the conjugate of a complex number.
|
|
int | Escape (int=1024) const |
| Compute the escape time in the Mandelbrot series. More...
|
|
|
Complex | operator+ (const Complex &, const Complex &) |
| Adds two complex numbers.
|
|
Complex | operator- (const Complex &, const Complex &) |
| Subtract two complex numbers.
|
|
Complex | operator* (const Complex &, const Complex &) |
| Multiplies two complex numbers.
|
|
Complex | operator* (const Complex &, const double &) |
| Overloaded.
|
|
Complex | operator* (const double &, const Complex &) |
| Overloaded.
|
|
Complex | operator/ (const Complex &, const double &) |
| Overloaded.
|
|
Complex | operator/ (const Complex &, const Complex &) |
| Divide two complex numbers. More...
|
|
Complex | operator/ (const double &, const Complex &) |
| Compute the inverse of a complex number.
|
|
bool | operator== (const Complex &, const Complex &) |
| Overloaded.
|
|
bool | operator!= (const Complex &, const Complex &) |
| Overloaded.
|
|
double | Norm (const Complex &) |
| Returns the module of a complex.
|
|
void | Normalize (Complex &) |
| Normalize a complex. More...
|
|
Complex | Sqrt (const Complex &) |
| Computes the square root of a complex number. More...
|
|
std::ostream & | operator<< (std::ostream &, const Complex &) |
| Overloaded. More...
|
|
Complex numbers.
All operators are overloaded to enable the writing of simple math expressions.