| 
| mha_complex_t &  | set (mha_complex_t &self, mha_real_t real, mha_real_t imag=0) | 
|   | Assign real and imaginary parts to a mha_complex_t variable.  More...
  | 
|   | 
| mha_complex_t  | mha_complex (mha_real_t real, mha_real_t imag=0) | 
|   | Create a new mha_complex_t with specified real and imaginary parts.  More...
  | 
|   | 
| mha_complex_t &  | set (mha_complex_t &self, const std::complex< mha_real_t > &stdcomplex) | 
|   | Assign a mha_complex_t variable from a std::complex.  More...
  | 
|   | 
| std::complex< mha_real_t >  | stdcomplex (const mha_complex_t &self) | 
|   | Create a std::complex from mha_complex_t.  More...
  | 
|   | 
| mha_complex_t &  | expi (mha_complex_t &self, mha_real_t angle) | 
|   | replaces the value of the given mha_complex_t with exp(i*b).  More...
  | 
|   | 
| double  | angle (const mha_complex_t &self) | 
|   | Computes the angle of a complex number in the complex plane.  More...
  | 
|   | 
| mha_complex_t &  | operator+= (mha_complex_t &self, const mha_complex_t &other) | 
|   | Addition of two complex numbers, overwriting the first.  More...
  | 
|   | 
| mha_complex_t  | operator+ (const mha_complex_t &self, const mha_complex_t &other) | 
|   | Addition of two complex numbers, result is a temporary object.  More...
  | 
|   | 
| mha_complex_t &  | operator+= (mha_complex_t &self, mha_real_t other_real) | 
|   | Addition of a complex and a real number, overwriting the complex.  More...
  | 
|   | 
| mha_complex_t  | operator+ (const mha_complex_t &self, mha_real_t other_real) | 
|   | Addition of a complex and a real number, result is a temporary object.  More...
  | 
|   | 
| mha_complex_t &  | operator-= (mha_complex_t &self, const mha_complex_t &other) | 
|   | Subtraction of two complex numbers, overwriting the first.  More...
  | 
|   | 
| mha_complex_t  | operator- (const mha_complex_t &self, const mha_complex_t &other) | 
|   | Subtraction of two complex numbers, result is a temporary object.  More...
  | 
|   | 
| mha_complex_t &  | operator-= (mha_complex_t &self, mha_real_t other_real) | 
|   | Subtraction of a complex and a real number, overwriting the complex.  More...
  | 
|   | 
| mha_complex_t  | operator- (const mha_complex_t &self, mha_real_t other_real) | 
|   | Subtraction of a complex and a real number, result is a temporary object.  More...
  | 
|   | 
| mha_complex_t &  | operator*= (mha_complex_t &self, const mha_complex_t &other) | 
|   | Multiplication of two complex numbers, overwriting the first.  More...
  | 
|   | 
| mha_complex_t  | operator* (const mha_complex_t &self, const mha_complex_t &other) | 
|   | Multiplication of two complex numbers, result is a temporary object.  More...
  | 
|   | 
| mha_complex_t &  | operator*= (mha_complex_t &self, mha_real_t other_real) | 
|   | Multiplication of a complex and a real number, overwriting the complex.  More...
  | 
|   | 
| mha_complex_t &  | expi (mha_complex_t &self, mha_real_t angle, mha_real_t factor) | 
|   | replaces (!) the value of the given mha_complex_t with a * exp(i*b)  More...
  | 
|   | 
| mha_complex_t  | operator* (const mha_complex_t &self, mha_real_t other_real) | 
|   | Multiplication of a complex and a real number, result is a temporary object.  More...
  | 
|   | 
| mha_real_t  | abs2 (const mha_complex_t &self) | 
|   | Compute the square of the absolute value of a complex value.  More...
  | 
|   | 
| mha_real_t  | abs (const mha_complex_t &self) | 
|   | Compute the absolute value of a complex value.  More...
  | 
|   | 
| mha_complex_t &  | operator/= (mha_complex_t &self, mha_real_t other_real) | 
|   | Division of a complex and a real number, overwriting the complex.  More...
  | 
|   | 
| mha_complex_t  | operator/ (const mha_complex_t &self, mha_real_t other_real) | 
|   | Division of a complex and a real number, result is a temporary object.  More...
  | 
|   | 
| mha_complex_t &  | safe_div (mha_complex_t &self, const mha_complex_t &other, mha_real_t eps, mha_real_t eps2) | 
|   | Safe division of two complex numbers, overwriting the first.  More...
  | 
|   | 
| mha_complex_t &  | operator/= (mha_complex_t &self, const mha_complex_t &other) | 
|   | Division of two complex numbers, overwriting the first.  More...
  | 
|   | 
| mha_complex_t  | operator/ (const mha_complex_t &self, const mha_complex_t &other) | 
|   | Division of two complex numbers, result is a temporary object.  More...
  | 
|   | 
| mha_complex_t  | operator- (const mha_complex_t &self) | 
|   | Unary minus on a complex results in a negative temporary object.  More...
  | 
|   | 
| bool  | operator== (const mha_complex_t &x, const mha_complex_t &y) | 
|   | Compare two complex numbers for equality.  More...
  | 
|   | 
| bool  | operator!= (const mha_complex_t &x, const mha_complex_t &y) | 
|   | Compare two complex numbers for inequality.  More...
  | 
|   | 
| void  | conjugate (mha_complex_t &self) | 
|   | Replace (!) the value of this mha_complex_t with its conjugate.  More...
  | 
|   | 
| mha_complex_t  | _conjugate (const mha_complex_t &self) | 
|   | Compute the cojugate of this complex value.  More...
  | 
|   | 
| void  | reciprocal (mha_complex_t &self) | 
|   | Replace the value of this complex with its reciprocal.  More...
  | 
|   | 
| mha_complex_t  | _reciprocal (const mha_complex_t &self) | 
|   | compute the reciprocal of this complex value.  More...
  | 
|   | 
| void  | normalize (mha_complex_t &self) | 
|   | Divide a complex by its absolute value, thereby normalizing it (projecting onto the unit circle).  More...
  | 
|   | 
| void  | normalize (mha_complex_t &self, mha_real_t margin) | 
|   | Divide a complex by its absolute value, thereby normalizing it (projecting onto the unit circle), with a safety margin.  More...
  | 
|   | 
| bool  | almost (const mha_complex_t &self, const mha_complex_t &other, mha_real_t times_epsilon=1e2) | 
|   | Compare two complex numbers for equality except for a small relative error.  More...
  | 
|   | 
| bool  | operator< (const mha_complex_t &x, const mha_complex_t &y) | 
|   | Compares the absolute values of two complex numbers.  More...
  | 
|   |