Extension to the c++ complex library type. More...
Public Types | |
typedef complex | cmptType |
Component type. More... | |
Public Member Functions | |
complex () | |
Construct null. More... | |
complex (const scalar Re, const scalar Im) | |
Construct given real and imaginary parts. More... | |
complex (Istream &) | |
Construct from Istream. More... | |
scalar | Re () const |
scalar | Im () const |
scalar & | Re () |
scalar & | Im () |
complex | conjugate () 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= (const scalar) |
void | operator+= (const scalar) |
void | operator-= (const scalar) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
complex | operator! () const |
bool | operator== (const complex &) const |
bool | operator!= (const complex &) const |
Static Public Attributes | |
static const char *const | typeName = "complex" |
static const complex | zero |
static const complex | one |
Private Attributes | |
scalar | re |
Real and imaginary parts of the complex number. More... | |
scalar | im |
Friends | |
scalar | magSqr (const complex &c) |
complex | sqr (const complex &c) |
scalar | mag (const complex &c) |
const friend complex & | max (const complex &, const complex &) |
const friend complex & | min (const complex &, const complex &) |
complex | limit (const complex &, const complex &) |
const friend complex & | sum (const complex &) |
complex | operator+ (const complex &, const complex &) |
complex | operator- (const complex &) |
complex | operator- (const complex &, const complex &) |
complex | operator* (const complex &, const complex &) |
complex | operator/ (const complex &, const complex &) |
complex | operator* (const scalar, const complex &) |
complex | operator* (const complex &, const scalar) |
complex | operator/ (const complex &, const scalar) |
complex | operator/ (const scalar, const complex &) |
Istream & | operator>> (Istream &, complex &) |
Ostream & | operator<< (Ostream &, const complex &) |
Extension to the c++ complex library type.
|
inline |
Construct null.
Definition at line 33 of file complexI.H.
Referenced by complex::conjugate().
|
inline |
Construct given real and imaginary parts.
Definition at line 37 of file complexI.H.
|
inline |
Definition at line 46 of file complexI.H.
References complex::re.
|
inline |
Definition at line 52 of file complexI.H.
References complex::im.
|
inline |
|
inline |
|
inline |
Definition at line 70 of file complexI.H.
References complex::complex(), complex::im, and complex::re.
Referenced by complex::operator!().
Definition at line 78 of file complexI.H.
References Foam::constant::universal::c, complex::im, and complex::re.
|
inline |
Definition at line 86 of file complexI.H.
References Foam::constant::universal::c, complex::im, and complex::re.
|
inline |
Definition at line 93 of file complexI.H.
References Foam::constant::universal::c, complex::im, and complex::re.
|
inline |
Definition at line 100 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 106 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 112 of file complexI.H.
References complex::im, complex::re, and s().
|
inline |
Definition at line 120 of file complexI.H.
References complex::re, and s().
|
inline |
Definition at line 126 of file complexI.H.
References complex::re, and s().
|
inline |
Definition at line 132 of file complexI.H.
References complex::im, complex::re, and s().
|
inline |
Definition at line 139 of file complexI.H.
References complex::im, complex::re, and s().
|
inline |
Definition at line 146 of file complexI.H.
References complex::conjugate().
|
inline |
Definition at line 152 of file complexI.H.
References Foam::constant::universal::c, Foam::equal(), complex::im, and complex::re.
Referenced by complex::operator!=().
Definition at line 158 of file complexI.H.
References Foam::constant::universal::c, and complex::operator==().
|
friend |
Definition at line 167 of file complexI.H.
Definition at line 173 of file complexI.H.
|
friend |
Definition at line 179 of file complexI.H.
Definition at line 185 of file complexI.H.
Definition at line 198 of file complexI.H.
Definition at line 211 of file complexI.H.
Definition at line 217 of file complexI.H.
Definition at line 234 of file complexI.H.
Definition at line 244 of file complexI.H.
Definition at line 254 of file complexI.H.
Definition at line 264 of file complexI.H.
Definition at line 274 of file complexI.H.
Definition at line 286 of file complexI.H.
Definition at line 292 of file complexI.H.
Definition at line 298 of file complexI.H.
Definition at line 304 of file complexI.H.
|
private |
Real and imaginary parts of the complex number.
Definition at line 81 of file complex.H.
Referenced by complex::conjugate(), complex::operator*=(), complex::operator+=(), complex::operator-=(), complex::operator/=(), complex::operator=(), complex::operator==(), and complex::Re().
|
private |
Definition at line 81 of file complex.H.
Referenced by complex::conjugate(), complex::Im(), complex::operator*=(), complex::operator+=(), complex::operator-=(), complex::operator/=(), complex::operator=(), and complex::operator==().
|
static |
|
static |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.