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 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.
|
inline |
Definition at line 99 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 105 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 111 of file complexI.H.
References s().
|
inline |
Definition at line 118 of file complexI.H.
References s().
|
inline |
Definition at line 124 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 s().
|
inline |
Definition at line 144 of file complexI.H.
References complex::conjugate().
|
inline |
Definition at line 150 of file complexI.H.
References Foam::equal().
Referenced by complex::operator!=().
Definition at line 156 of file complexI.H.
References complex::operator==().
|
friend |
Definition at line 165 of file complexI.H.
Referenced by Foam::mag(), and Foam::operator/().
Definition at line 171 of file complexI.H.
|
friend |
Definition at line 177 of file complexI.H.
Referenced by Foam::max(), and Foam::min().
Definition at line 183 of file complexI.H.
Definition at line 196 of file complexI.H.
Definition at line 209 of file complexI.H.
Referenced by Foam::limit().
Definition at line 215 of file complexI.H.
Definition at line 232 of file complexI.H.
Definition at line 242 of file complexI.H.
Definition at line 252 of file complexI.H.
Definition at line 262 of file complexI.H.
Definition at line 272 of file complexI.H.
Definition at line 284 of file complexI.H.
Definition at line 290 of file complexI.H.
Definition at line 296 of file complexI.H.
Definition at line 302 of file complexI.H.
|
static |
|
static |