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 |
void | operator+= (const complex &) |
void | operator-= (const complex &) |
void | operator*= (const complex &) |
void | operator/= (const complex &) |
void | 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 |
Friends | |
scalar | magSqr (const complex &c) |
complex | sqr (const complex &c) |
scalar | mag (const complex &c) |
const complex & | max (const complex &, const complex &) |
const complex & | min (const complex &, const complex &) |
complex | limit (const complex &, const complex &) |
const 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(), Foam::limit(), Foam::operator*(), Foam::operator+(), Foam::operator-(), and Foam::operator/().
|
inline |
Construct given real and imaginary parts.
Definition at line 37 of file complexI.H.
|
inline |
Definition at line 46 of file complexI.H.
Referenced by Foam::name().
|
inline |
Definition at line 52 of file complexI.H.
Referenced by Foam::name().
|
inline |
Definition at line 58 of file complexI.H.
|
inline |
Definition at line 64 of file complexI.H.
|
inline |
Definition at line 70 of file complexI.H.
References complex::complex().
Referenced by complex::operator!().
|
inline |
Definition at line 78 of file complexI.H.
|
inline |
Definition at line 85 of file complexI.H.
|
inline |
Definition at line 92 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 98 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 104 of file complexI.H.
References s().
|
inline |
Definition at line 111 of file complexI.H.
References s().
|
inline |
Definition at line 117 of file complexI.H.
References s().
|
inline |
Definition at line 123 of file complexI.H.
References s().
|
inline |
Definition at line 130 of file complexI.H.
References s().
|
inline |
Definition at line 137 of file complexI.H.
References complex::conjugate().
|
inline |
Definition at line 143 of file complexI.H.
References Foam::equal().
Referenced by complex::operator!=().
Definition at line 149 of file complexI.H.
References complex::operator==().
|
friend |
Definition at line 158 of file complexI.H.
Referenced by Foam::mag(), and Foam::operator/().
Definition at line 164 of file complexI.H.
|
friend |
Definition at line 170 of file complexI.H.
Referenced by Foam::max(), and Foam::min().
Definition at line 176 of file complexI.H.
Definition at line 189 of file complexI.H.
Definition at line 202 of file complexI.H.
Referenced by Foam::limit().
Definition at line 208 of file complexI.H.
Definition at line 225 of file complexI.H.
Definition at line 235 of file complexI.H.
Definition at line 245 of file complexI.H.
Definition at line 255 of file complexI.H.
Definition at line 265 of file complexI.H.
Definition at line 277 of file complexI.H.
Definition at line 283 of file complexI.H.
Definition at line 289 of file complexI.H.
Definition at line 295 of file complexI.H.
|
static |
|
static |