KrisLibrary
1.0.0
|
Complex number class (x + iy). More...
#include <complex.h>
Public Member Functions | |
Complex (const Complex &) | |
Complex (Real x) | |
Complex (Real x, Real y) | |
bool | operator== (const Complex &) const |
bool | operator!= (const Complex &) const |
const Complex & | operator= (const Complex &) |
void | operator+= (const Complex &) |
void | operator-= (const Complex &) |
void | operator*= (const Complex &) |
void | operator/= (const Complex &) |
const Complex & | operator= (Real) |
void | operator+= (Real) |
void | operator-= (Real) |
void | operator*= (Real) |
void | operator/= (Real) |
void | add (const Complex &a, const Complex &b) |
void | sub (const Complex &a, const Complex &b) |
void | mul (const Complex &a, const Complex &b) |
void | div (const Complex &a, const Complex &b) |
void | madd (const Complex &a, const Complex &b) |
void | addConjugateB (const Complex &a, const Complex &b) |
void | subConjugateB (const Complex &a, const Complex &b) |
void | mulConjugateB (const Complex &a, const Complex &b) |
void | divConjugateB (const Complex &a, const Complex &b) |
void | maddConjugateB (const Complex &a, const Complex &b) |
void | add (const Complex &a, Real) |
void | sub (const Complex &a, Real) |
void | mul (const Complex &a, Real) |
void | div (const Complex &a, Real) |
void | madd (const Complex &a, Real) |
void | set (const Complex &) |
void | set (Real x) |
void | set (Real x, Real y) |
void | setZero () |
void | setNegative (const Complex &) |
void | setNormalized (const Complex &) |
void | setConjugate (const Complex &) |
void | setPolar (Real r, Real theta) |
bool | setInverse (const Complex &) |
void | setExp (const Complex &) |
bool | setLog (const Complex &, int n=0) |
void | setPow (const Complex &, Real) |
void | setPow (const Complex &, const Complex &) |
void | get (Complex &) const |
void | get (Real &x, Real &y) const |
void | getNegative (Complex &) const |
void | getNormalized (Complex &) const |
void | getConjugate (Complex &) const |
void | getPolar (Real &r, Real &theta) |
bool | getInverse (Complex &) const |
void | inplaceNegative () |
void | inplaceScale (Real) |
void | inplaceNormalize () |
void | inplaceConjugate () |
bool | inplaceInverse () |
bool | isInvertible () const |
Real | norm () const |
Real | normSquared () const |
Real | arg () const |
const Real & | Re () const |
const Real & | Im () const |
Real & | Re () |
Real & | Im () |
bool | Read (File &) |
bool | Write (File &) const |
Public Attributes | |
Real | x |
Real | y |
Complex number class (x + iy).