#include <fft.hpp>
Complex class implements a complex numbers as pair of two double values. Class contains a small number of operations required in program.
Definition at line 17 of file fft.hpp.
Public Member Functions | |
Complex (double _re=0, double _im=0) | |
Make complex number from real and imaginary parts. | |
double | GetRe () const |
Get real part of complex number. | |
double | GetIm () const |
Get imaginary part of complex number. | |
double | GetNorm () const |
Get squared (!) norm of complex number. TODO: rename method. | |
Complex | operator+ (const Complex &op2) const |
Addition of complex numbers. | |
Complex | operator- (const Complex &op2) const |
Substraction of complex numbers. | |
Complex | operator * (const Complex &op2) const |
Multiplication of complex numbers. | |
Complex | operator/ (const Complex &op2) const |
Division of complex numbers; check by yourself that op2.norm > 0. | |
void | operator+= (const Complex &op2) |
void | operator *= (const Complex &op2) |
void | operator/= (const Complex &op2) |
|
Make complex number from real and imaginary parts.
|
|
Get real part of complex number.
Definition at line 9 of file fft.cpp. Referenced by SmoluchowskiCalcFast::calc_L1(), SmoluchowskiCalcFast::calc_L1_fix_f(), SmoluchowskiCalcFast::calc_L2(), and SmoluchowskiCalcFast::calc_L2_fix_f(). |
|
Get imaginary part of complex number.
|
|
Get squared (!) norm of complex number. TODO: rename method.
Definition at line 19 of file fft.cpp. Referenced by operator/(), and operator/=(). |
|
Addition of complex numbers.
|
|
Substraction of complex numbers.
|
|
Multiplication of complex numbers.
|
|
Division of complex numbers; check by yourself that op2.norm > 0.
Definition at line 43 of file fft.cpp. References GetNorm(). |
|
|
|
|
|
Definition at line 65 of file fft.cpp. References GetNorm(). |