9 #include <gsl/gsl_complex.h>
47 void Set(
const double Re,
const double Im);
48 void SetPolar(
const double mag,
const double phase);
95 Diana::QComplex
operator*(
double t,
const Diana::QComplex& z);
96 Diana::QComplex
operator/(
double t,
const Diana::QComplex& z);
100 Diana::QComplex
pow(
const Diana::QComplex &z,
double a);
104 Diana::QComplex
pow(
const Diana::QComplex &z,
const Diana::QComplex &
a);
108 double Re(
const Diana::QComplex &z);
112 double Im(
const Diana::QComplex &z);
117 std::ostream&
operator<<(std::ostream& s,
const Diana::QComplex& z);
std::ostream & operator<<(std::ostream &s, const Diana::QComplex &z)
Diana::QComplex pow(const Diana::QComplex &z, double a)
Raise a complex number to a real power.
Diana::QComplex operator/(double t, const Diana::QComplex &z)
double Im(const Diana::QComplex &z)
Function to get the imag part.
double Re(const Diana::QComplex &z)
Function to get the real part.
Q_END_NAMESPACE Diana::QComplex operator*(double t, const Diana::QComplex &z)
#define Q_BEGIN_NAMESPACE
QComplex operator+(const QComplex &other) const
QComplex & operator*=(const QComplex &other)
void SetIm(const double Im)
QComplex & operator+=(const QComplex &other)
QComplex & operator-=(const QComplex &other)
gsl_complex Get_gsl_complex() const
void SetRe(const double Re)
QComplex()
default constructor
QComplex operator-(const QComplex &other) const
double GetModulusSquare() const
void Set(const double Re, const double Im)
const QComplex & operator=(const QComplex &other)
QComplex operator/(const QComplex &other) const
QComplex & operator/=(const QComplex &other)
double GetMagnitude() const
QComplex operator*(const QComplex &other) const
void SetPolar(const double mag, const double phase)
Interface for complex matrices in Diana analysis.
base class for objects handled by QEvent and QGlobalDataManager.
Interface for complex vectors in Diana analysis.