A complex number, similar to the C++ complex type. More...
Public Member Functions | |
complex (const complex &)=default | |
complex & | operator= (const complex &)=default |
complex (complex &&)=default | |
complex & | operator= (complex &&)=default |
constexpr | complex () noexcept |
constexpr | complex (const Foam::zero) noexcept |
constexpr | complex (const scalar r) noexcept |
constexpr | complex (const scalar r, const scalar i) noexcept |
complex (const std::complex< float > &c) | |
complex (const std::complex< double > &c) | |
complex (Istream &is) | |
constexpr scalar | real () const |
constexpr scalar | imag () const |
void | real (scalar val) |
void | imag (scalar val) |
scalar | Re () const |
scalar | Im () const |
scalar & | Re () |
scalar & | Im () |
complex | conjugate () const |
operator std::complex< scalar > () const | |
void | operator= (const Foam::zero) |
void | operator= (const scalar s) |
void | operator+= (const complex &c) |
void | operator+= (const scalar s) |
void | operator-= (const complex &c) |
void | operator-= (const scalar s) |
void | operator*= (const complex &c) |
void | operator*= (const scalar s) |
void | operator/= (const complex &c) |
void | operator/= (const scalar s) |
bool | operator== (const complex &c) const |
bool | operator!= (const complex &c) const |
Friends | |
scalar | magSqr (const complex &c) |
scalar | mag (const complex &c) |
complex | sqr (const complex &c) |
complex | sign (const complex &c) |
scalar | csign (const complex &c) |
const friend complex & | min (const complex &c1, const complex &c2) |
const friend complex & | max (const complex &c1, const complex &c2) |
complex | limit (const complex &c1, const complex &c2) |
const friend complex & | sum (const complex &c) |
complex | operator- (const complex &c) |
complex | operator+ (const complex &c1, const complex &c2) |
complex | operator+ (const complex &c, const scalar s) |
complex | operator+ (const scalar s, const complex &c) |
complex | operator- (const complex &c1, const complex &c2) |
complex | operator- (const complex &c, const scalar s) |
complex | operator- (const scalar s, const complex &c) |
complex | operator* (const complex &c1, const complex &c2) |
complex | operator* (const complex &c, const scalar s) |
complex | operator* (const scalar s, const complex &c) |
complex | operator/ (const complex &c1, const complex &c2) |
complex | operator/ (const complex &c, const scalar s) |
complex | operator/ (const scalar s, const complex &c) |
A complex number, similar to the C++ complex type.
|
inlineconstexprnoexcept |
Definition at line 24 of file complexI.H.
|
inlineconstexprnoexcept |
Definition at line 31 of file complexI.H.
|
inlineexplicitconstexprnoexcept |
Definition at line 38 of file complexI.H.
|
inlineconstexprnoexcept |
Definition at line 45 of file complexI.H.
|
inline |
Definition at line 52 of file complexI.H.
|
inline |
Definition at line 59 of file complexI.H.
|
inline |
Definition at line 68 of file complexI.H.
References Foam::constant::atomic::re.
|
inline |
Definition at line 74 of file complexI.H.
|
inline |
Definition at line 80 of file complexI.H.
References Foam::constant::atomic::re.
|
inline |
Definition at line 86 of file complexI.H.
|
inline |
|
inline |
|
inline |
Definition at line 104 of file complexI.H.
References Foam::roots::complex, and Foam::constant::atomic::re.
|
inline |
Definition at line 112 of file complexI.H.
References Foam::constant::atomic::re.
|
inline |
Definition at line 119 of file complexI.H.
References Foam::constant::atomic::re, and s.
|
inline |
Definition at line 126 of file complexI.H.
References Foam::constant::universal::c, and Foam::constant::atomic::re.
|
inline |
Definition at line 133 of file complexI.H.
References Foam::constant::atomic::re, and s.
|
inline |
Definition at line 139 of file complexI.H.
References Foam::constant::universal::c, and Foam::constant::atomic::re.
|
inline |
Definition at line 146 of file complexI.H.
References Foam::constant::atomic::re, and s.
|
inline |
Definition at line 152 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 158 of file complexI.H.
References Foam::constant::atomic::re, and s.
|
inline |
Definition at line 165 of file complexI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 171 of file complexI.H.
References Foam::constant::atomic::re, and s.
Definition at line 178 of file complexI.H.
References Foam::constant::universal::c, Foam::equal(), and Foam::constant::atomic::re.
Definition at line 184 of file complexI.H.
References Foam::constant::universal::c, and Foam::operator==().
|
friend |
Definition at line 203 of file complexI.H.
|
friend |
Definition at line 209 of file complexI.H.
Definition at line 215 of file complexI.H.
Definition at line 221 of file complexI.H.
|
friend |
Definition at line 228 of file complexI.H.
Definition at line 234 of file complexI.H.
Definition at line 245 of file complexI.H.
Definition at line 256 of file complexI.H.
Definition at line 262 of file complexI.H.
Definition at line 278 of file complexI.H.
Definition at line 284 of file complexI.H.
Definition at line 294 of file complexI.H.
Definition at line 300 of file complexI.H.
Definition at line 306 of file complexI.H.
Definition at line 316 of file complexI.H.
Definition at line 322 of file complexI.H.
Definition at line 328 of file complexI.H.
Definition at line 338 of file complexI.H.
Definition at line 344 of file complexI.H.
Definition at line 350 of file complexI.H.
Definition at line 362 of file complexI.H.
Definition at line 368 of file complexI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.