RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
complex Class Reference

#include <complex.h>

Public Member Functions

 complex (double _r, double _i=0.0)
 
 complex (float _r, float _i)
 
 complex ()
 
void operator+= (const complex)
 
void operator-= (const complex)
 
void operator*= (const complex)
 
void operator*= (double)
 
void operator/= (double)
 

Private Attributes

double re
 
double im
 

Friends

double real (const complex &)
 
double imag (const complex &)
 
complex conj (const complex)
 
complex sqrt (const complex)
 
double norm (const complex)
 
double cabs (const complex)
 
double mag (const complex)
 
double arg (const complex)
 
complex cexp (const complex)
 
double mag_sqrd (const complex)
 
complex operator- (const complex)
 
complex operator+ (const complex, const complex)
 
complex operator- (const complex, const complex)
 
complex operator* (const complex, const complex)
 
complex operator* (const complex, double)
 
complex operator* (double, const complex)
 
complex operator/ (const complex, const complex)
 
complex operator/ (const complex, double)
 
complex operator/ (double, const complex)
 

Detailed Description

Definition at line 12 of file complex.h.

Constructor & Destructor Documentation

complex::complex(double _r,
double _i = 0.0 
)
inline

Definition at line 50 of file complex.h.

complex::complex(float _r,
float _i 
)
inline

Definition at line 55 of file complex.h.

complex::complex()
inline

Definition at line 60 of file complex.h.

Member Function Documentation

void complex::operator*=(const complex value)
inline

Definition at line 84 of file complex.h.

void complex::operator*=(double _v)
inline

Definition at line 78 of file complex.h.

void complex::operator+=(const complex _z)
inline

Definition at line 66 of file complex.h.

void complex::operator-=(const complex _z)
inline

Definition at line 72 of file complex.h.

void complex::operator/=(double )

Friends And Related Function Documentation

double arg(const complex _z)
friend

Definition at line 133 of file complex.h.

double cabs(const complex _z)
friend

Definition at line 118 of file complex.h.

complex cexp(const complex _z)
friend

Definition at line 139 of file complex.h.

complex conj(const complex _z)
friend

Definition at line 108 of file complex.h.

double imag(const complex_z)
friend

Definition at line 103 of file complex.h.

double mag(const complex _z)
friend

Definition at line 123 of file complex.h.

double mag_sqrd(const complex _z)
friend

Definition at line 128 of file complex.h.

double norm(const complex _z)
friend

Definition at line 113 of file complex.h.

complex operator*(const complex value1,
const complex value2 
)
friend

Definition at line 191 of file complex.h.

complex operator*(const complex _z1,
double _v2 
)
friend

Definition at line 175 of file complex.h.

complex operator*(double _v1,
const complex _z2 
)
friend

Definition at line 180 of file complex.h.

complex operator+(const complex _z1,
const complex _z2 
)
friend

Definition at line 164 of file complex.h.

complex operator-(const complex _z)
friend

Definition at line 158 of file complex.h.

complex operator-(const complex _z1,
const complex _z2 
)
friend

Definition at line 170 of file complex.h.

complex operator/(const complex value1,
const complex value2 
)
friend

Definition at line 38 of file complex.cpp.

complex operator/(const complex z1,
double v2 
)
friend

Definition at line 186 of file complex.h.

complex operator/(double ,
const complex  
)
friend
double real(const complex_z)
friend

Definition at line 98 of file complex.h.

complex sqrt(const complex _z)
friend

Definition at line 148 of file complex.h.

Member Data Documentation

double complex::im
private

Definition at line 47 of file complex.h.

double complex::re
private

Definition at line 47 of file complex.h.


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