| Bsoft 2.0.5 Bernard's software package

Public Member Functions | List of all members
Complex< Type > Class Template Reference

`#include <Complex.h>`

## Public Member Functions
| Complex ()
| Complex (const Complex &c)
| Complex (const Type r)
| Complex (const Type r, const Type i)
Complex | operator= (const double &d)
Complex | operator= (const Complex &c)
Complex | operator- ()
Complex | operator+= (const Complex &c)
Complex | operator+ (const Complex &c)
Complex | operator-= (const Complex &c)
Complex | operator- (const Complex &c)
Complex | operator *= (const double d)
Complex | operator *= (const Complex &c)
Complex | operator * (const double d)
Complex | operator * (const Complex &c)
Complex | operator/= (const double d)
Complex | operator/= (const Complex &c)
Complex | operator/ (const double d)
Complex | operator/ (const Complex &c)
Type & | operator[] (const int i)
template<typename T2 >
| operator Complex< T2 > () const
bool | is_finite ()
Type | real ()
Type | imag ()
double | power ()
double | amp ()
double | phi ()
Complex | conj ()
void | set (const double a, const double p)
void | real (const Type d)
void | imag (const Type d)
void | amp (const double d)
void | phi (const double d)
void | shift_phi (const double d)
Complex | unpack_first (Complex c)
Complex | unpack_second (Complex c)

## Detailed Description

### template<typename Type>
class Complex< Type >

Definition at line 23 of file Complex.h.

## Constructor & Destructor Documentation

## ◆ Complex() [1/4]

template<typename Type>

Complex< Type >::Complex | ( |  | ) |
| inline

Definition at line 26 of file Complex.h.

## ◆ Complex() [2/4]

template<typename Type>

Complex< Type >::Complex | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 27 of file Complex.h.

## ◆ Complex() [3/4]

template<typename Type>

Complex< Type >::Complex | ( | const Type | r | ) |
| inline

Definition at line 28 of file Complex.h.

## ◆ Complex() [4/4]

template<typename Type>

Complex< Type >::Complex | ( | const Type | r,
|  | const Type | i
| ) |  |
| inline

Definition at line 29 of file Complex.h.

## Member Function Documentation

## ◆ amp() [1/2]

template<typename Type>

double Complex< Type >::amp | ( |  | ) |
| inline

Definition at line 104 of file Complex.h.

## ◆ amp() [2/2]

template<typename Type>

void Complex< Type >::amp | ( | const double | d | ) |
| inline

Definition at line 110 of file Complex.h.

## ◆ conj()

template<typename Type>

Complex Complex< Type >::conj | ( |  | ) |
| inline

Definition at line 106 of file Complex.h.

## ◆ imag() [1/2]

template<typename Type>

Type Complex< Type >::imag | ( |  | ) |
| inline

Definition at line 102 of file Complex.h.

## ◆ imag() [2/2]

template<typename Type>

void Complex< Type >::imag | ( | const Type | d | ) |
| inline

Definition at line 109 of file Complex.h.

## ◆ is_finite()

template<typename Type>

bool Complex< Type >::is_finite | ( |  | ) |
| inline

Definition at line 100 of file Complex.h.

## ◆ operator *() [1/2]

template<typename Type>

Complex Complex< Type >::operator * | ( | const double | d | ) |
| inline

Definition at line 69 of file Complex.h.

## ◆ operator *() [2/2]

template<typename Type>

Complex Complex< Type >::operator * | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 72 of file Complex.h.

## ◆ operator *=() [1/2]

template<typename Type>

Complex Complex< Type >::operator *= | ( | const double | d | ) |
| inline

Definition at line 59 of file Complex.h.

## ◆ operator *=() [2/2]

template<typename Type>

Complex Complex< Type >::operator *= | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 64 of file Complex.h.

## ◆ operator Complex< T2 >()

template<typename Type>
template<typename T2 >

Complex< Type >::operator Complex< T2 > | ( |  | ) | const
| inline

Definition at line 97 of file Complex.h.

## ◆ operator+()

template<typename Type>

Complex Complex< Type >::operator+ | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 48 of file Complex.h.

## ◆ operator+=()

template<typename Type>

Complex Complex< Type >::operator+= | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 43 of file Complex.h.

## ◆ operator-() [1/2]

template<typename Type>

Complex Complex< Type >::operator- | ( |  | ) |
| inline

Definition at line 40 of file Complex.h.

## ◆ operator-() [2/2]

template<typename Type>

Complex Complex< Type >::operator- | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 56 of file Complex.h.

## ◆ operator-=()

template<typename Type>

Complex Complex< Type >::operator-= | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 51 of file Complex.h.

## ◆ operator/() [1/2]

template<typename Type>

Complex Complex< Type >::operator/ | ( | const double | d | ) |
| inline

Definition at line 87 of file Complex.h.

## ◆ operator/() [2/2]

template<typename Type>

Complex Complex< Type >::operator/ | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 90 of file Complex.h.

## ◆ operator/=() [1/2]

template<typename Type>

Complex Complex< Type >::operator/= | ( | const double | d | ) |
| inline

Definition at line 75 of file Complex.h.

## ◆ operator/=() [2/2]

template<typename Type>

Complex Complex< Type >::operator/= | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 80 of file Complex.h.

## ◆ operator=() [1/2]

template<typename Type>

Complex Complex< Type >::operator= | ( | const double & | d | ) |
| inline

Definition at line 30 of file Complex.h.

## ◆ operator=() [2/2]

template<typename Type>

Complex Complex< Type >::operator= | ( | const Complex< Type > & | c | ) |
| inline

Definition at line 35 of file Complex.h.

## ◆ operator[]()

template<typename Type>

Type& Complex< Type >::operator[] | ( | const int | i | ) |
| inline

Definition at line 96 of file Complex.h.

## ◆ phi() [1/2]

template<typename Type>

double Complex< Type >::phi | ( |  | ) |
| inline

Definition at line 105 of file Complex.h.

## ◆ phi() [2/2]

template<typename Type>

void Complex< Type >::phi | ( | const double | d | ) |
| inline

Definition at line 111 of file Complex.h.

## ◆ power()

template<typename Type>

double Complex< Type >::power | ( |  | ) |
| inline

Definition at line 103 of file Complex.h.

## ◆ real() [1/2]

template<typename Type>

Type Complex< Type >::real | ( |  | ) |
| inline

Definition at line 101 of file Complex.h.

## ◆ real() [2/2]

template<typename Type>

void Complex< Type >::real | ( | const Type | d | ) |
| inline

Definition at line 108 of file Complex.h.

## ◆ set()

template<typename Type>

void Complex< Type >::set | ( | const double | a,
|  | const double | p
| ) |  |
| inline

Definition at line 107 of file Complex.h.

## ◆ shift_phi()

template<typename Type>

void Complex< Type >::shift_phi | ( | const double | d | ) |
| inline

Definition at line 112 of file Complex.h.

## ◆ unpack_first()

template<typename Type>

Complex Complex< Type >::unpack_first | ( | Complex< Type > | c | ) |
| inline

Definition at line 113 of file Complex.h.

## ◆ unpack_second()

template<typename Type>

Complex Complex< Type >::unpack_second | ( | Complex< Type > | c | ) |
| inline

Definition at line 116 of file Complex.h.

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

- /Users/bernard/b20/bsoft/include/Complex.h