GLAC  1.0
Public Member Functions | Data Fields | Friends
complex Class Reference

A complex number class, consisting of t. More...

#include <complex.h>

Public Member Functions

 complex ()
 
 ~complex ()
 
 complex (double real, double imag)
 
 complex (const complex &b)
 
double re () const
 
double im () const
 
void setRe (double re)
 
void setIm (double im)
 
complexoperator= (const complex &b)
 
complexoperator+= (complex b)
 
complexoperator+= (double b)
 
complexoperator-= (complex b)
 
complexoperator-= (double b)
 
complexoperator *= (complex b)
 
complexoperator *= (double b)
 
complexoperator/= (complex b)
 
complexoperator/= (double b)
 
complex operator- () const
 
double norm ()
 
double normSquared ()
 
complex conjugate ()
 complex::conjugate More...
 
complex c ()
 complex::c More...
 
complex zeros ()
 

Data Fields

double z [2]
 

Friends

std::ostream & operator<< (std::ostream &os, const complex &a)
 

Detailed Description

A complex number class, consisting of t.

Author
Mathias M. Vege
Version
1.0
Date
2017-2019

Constructor & Destructor Documentation

◆ complex() [1/3]

complex::complex ( )
Here is the caller graph for this function:

◆ ~complex()

complex::~complex ( )

◆ complex() [2/3]

complex::complex ( double  real,
double  imag 
)

◆ complex() [3/3]

complex::complex ( const complex b)
Here is the call graph for this function:

Member Function Documentation

◆ c()

complex complex::c ( )

complex::c

Returns
a copy of the complex conjugate of itself.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ conjugate()

complex complex::conjugate ( )

complex::conjugate

Returns
the complex conjugate of itself.
Here is the caller graph for this function:

◆ im()

double complex::im ( ) const
inline
Here is the caller graph for this function:

◆ norm()

double complex::norm ( )

◆ normSquared()

double complex::normSquared ( )
Here is the caller graph for this function:

◆ operator *=() [1/2]

complex & complex::operator *= ( complex  b)
Here is the call graph for this function:

◆ operator *=() [2/2]

complex & complex::operator *= ( double  b)

◆ operator+=() [1/2]

complex & complex::operator+= ( complex  b)

◆ operator+=() [2/2]

complex & complex::operator+= ( double  b)

◆ operator-()

complex complex::operator- ( ) const
Here is the call graph for this function:

◆ operator-=() [1/2]

complex & complex::operator-= ( complex  b)
Here is the call graph for this function:

◆ operator-=() [2/2]

complex & complex::operator-= ( double  b)

◆ operator/=() [1/2]

complex & complex::operator/= ( complex  b)
Here is the call graph for this function:

◆ operator/=() [2/2]

complex & complex::operator/= ( double  b)

◆ operator=()

complex & complex::operator= ( const complex b)
Here is the call graph for this function:

◆ re()

double complex::re ( ) const
inline
Here is the caller graph for this function:

◆ setIm()

void complex::setIm ( double  im)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRe()

void complex::setRe ( double  re)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zeros()

complex complex::zeros ( )

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const complex a 
)
friend

Field Documentation

◆ z

double complex::z[2]

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