Extension to the c++ complex library type. More...
#include <OpenFOAM/complex.H>
Extension to the c++ complex library type.
Definition at line 77 of file complex.H.
Collaboration diagram for complex:Public Types | |
| typedef complex | cmptType |
| Component type.
| |
Public Member Functions | |
| complex () | |
| Construct null.
| |
| complex (const scalar Re, const scalar Im) | |
| Construct given real and imaginary parts.
| |
| complex (Istream &) | |
| Construct from Istream.
| |
| 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 |
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 &) |
| complex | ( | ) | [inline]
|
| complex | ( | const scalar | Re, |
| const scalar | Im | ||
| ) | [inline]
|
Construct given real and imaginary parts.
Definition at line 37 of file complexI.H.
| scalar Re | ( | ) | const [inline]
|
Definition at line 46 of file complexI.H.
Referenced by Foam::name().
| scalar Im | ( | ) | const [inline]
|
Definition at line 52 of file complexI.H.
Referenced by Foam::name().
| scalar & Re | ( | ) | [inline]
|
Definition at line 58 of file complexI.H.
| scalar & Im | ( | ) | [inline]
|
Definition at line 64 of file complexI.H.
| complex conjugate | ( | ) | const [inline]
|
Definition at line 70 of file complexI.H.
References complex::complex().
Referenced by complex::operator!().
Definition at line 78 of file complexI.H.
| void operator+= | ( | const complex & | c ) | [inline]
|
Definition at line 86 of file complexI.H.
| void operator-= | ( | const complex & | c ) | [inline]
|
Definition at line 93 of file complexI.H.
| void operator*= | ( | const complex & | c ) | [inline]
|
Definition at line 100 of file complexI.H.
| void operator/= | ( | const complex & | c ) | [inline]
|
Definition at line 106 of file complexI.H.
| const complex & operator= | ( | const scalar | s ) | [inline]
|
Definition at line 112 of file complexI.H.
| void operator+= | ( | const scalar | s ) | [inline]
|
Definition at line 120 of file complexI.H.
| void operator-= | ( | const scalar | s ) | [inline]
|
Definition at line 126 of file complexI.H.
| void operator*= | ( | const scalar | s ) | [inline]
|
Definition at line 132 of file complexI.H.
| void operator/= | ( | const scalar | s ) | [inline]
|
Definition at line 139 of file complexI.H.
| complex operator! | ( | ) | const [inline]
|
Definition at line 146 of file complexI.H.
References complex::conjugate().
| bool operator== | ( | const complex & | c ) | const [inline]
|
Definition at line 152 of file complexI.H.
References Foam::equal().
Referenced by complex::operator!=().
| bool operator!= | ( | const complex & | c ) | const [inline]
|
Definition at line 158 of file complexI.H.
References complex::operator==().
| scalar magSqr | ( | const complex & | c ) | [friend]
|
| scalar mag | ( | const complex & | c ) | [friend]
|
const Foam::complex zero [static]
|
const Foam::complex one [static]
|