complex< T > Class Template Reference
[Complex numbers]

IDIL complex class. More...

#include <IDIL_Utils.h>

List of all members.

Public Member Functions

 complex (T r)
 Construct a complex number equal to r+i*0.
 complex (T r, T i)
 Construct a complex number.
template<typename T2>
complex< T > & operator= (const T2 &e)
 Affectation.
template<typename T2>
complex< T > & operator= (complex< T2 > c)
 Affectation.
template<typename T2>
complex< T > & operator+= (complex< T2 > &c)
 Add a complex number.
complex< T > & operator+= (const T &e)
 Add a real number.
template<typename T2>
complex< T > & operator-= (complex< T2 > &c)
 Substract a complex number.
complex< T > & operator-= (const T &e)
 Substract a real number.
template<typename T2>
complex< T > & operator*= (complex< T2 > &c)
 Multiply by a complex number.
complex< T > & operator*= (const T &e)
 Multiply by a real number.
template<typename T2>
complex< T > & operator/= (complex< T2 > &c)
 Divide by a complex number.
complex< T > & operator/= (const T &e)
 Divide by a real number.

Public Attributes

rl
 Real part.
im
 Imaginary part.


Detailed Description

template<class T>
class complex< T >

IDIL complex class.

The class complex implements complex number arithmetic. Complex number might be composed of any numeric type.


The documentation for this class was generated from the following file:

Generated on Fri Oct 24 18:41:59 2008 for IDIL by  doxygen 1.5.5