In file mydocsrc/iml_cplx.h:

template class iml_complex

This class provides a minimal complex number type

Public

A: Public data.
FLPTType Real
The real part of the complex number.
FLPTType Imag
The imaginary part of the complex number.
B: Constructors and destructors.
iml_complex ()
Default constructor necessary for array allocation.
iml_complex (FLPTType Re, FLPTType Im)
The simple constructor.
iml_complex (iml_complex IML_REF CVal)
A copy constructor.
C: Mathematical operators.
void operator*= (IML_DOUBLE DVal)
Multiplication by a constant.
void operator= (iml_complex IML_REF CVal)
Assignment of a like complex.
void operator+= (iml_complex IML_REF CVal)
Addition of a like complex.
void operator-= (iml_complex IML_REF CVal)
Subtraction of a like complex.
void operator*= (iml_complex IML_REF CVal)
Multiplication by a like complex.
FLPTType get_mag ()
Get the magnitude: sqrt(r*r+i*i).
FLPTType get_amp ()
Magnitude with the sign of the real part.
FLPTType get_phase ()
Get the phase: atan(i/r).
void set_phase (FLPTType Phase)
Set the phase keeping the current magnitude.
void increment_phase (FLPTType Phase)
Increment the phase keeping the current magnitude.
void set_mag (FLPTType Mag)
Set the magnitude keeping the current phase.
void increment_mag (FLPTType Inc)
Increment the magnitude keeping the current phase.
void scale_mag (FLPTType Scale)
Scale the magnitude keeping the current phase.

Documentation

This class provides a minimal complex number type. There are much more complete versions of this, but none that were publicly available when I first wrote this code. This might get replaced by something that is public domain, eventually.

A: Public data.

B: Constructors and destructors.

C: Mathematical operators.


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++