C-XSC - A C++ Class Library for Extended Scientific Computing 2.5.4
|
The Multiple-Precision Data Type l_complex. More...
#include <l_complex.hpp>
Public Member Functions | |
l_complex | _l_complex (const cdotprecision &) |
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC. | |
l_complex (const cdotprecision &cd) noexcept | |
Constructor of class l_complex. | |
l_complex (const complex &r) noexcept | |
Constructor of class l_complex. | |
l_complex (const dotprecision &d) noexcept | |
Constructor of class l_complex. | |
l_complex (const l_real &a, const l_real &b) noexcept | |
Constructor of class l_complex. | |
l_complex (const l_real &r) noexcept | |
Constructor of class l_complex. | |
l_complex (const real &a, const real &b) noexcept | |
Constructor of class l_complex. | |
l_complex (const real &r) noexcept | |
Constructor of class l_complex. | |
l_complex (void) noexcept | |
Constructor of class l_complex. | |
l_complex | operator* (const l_real &) const noexcept |
Implementation of standard algebraic multiplication operation. | |
l_complex | operator* (const real &) const noexcept |
Implementation of standard algebraic multiplication operation. | |
l_complex | operator+ (const complex &) const noexcept |
Implementation of standard algebraic positive sign operation. | |
l_complex | operator+ (const l_real &) const noexcept |
Implementation of standard algebraic positive sign operation. | |
l_complex | operator+ (const real &) const noexcept |
Implementation of standard algebraic positive sign operation. | |
l_complex | operator- (const complex &) const noexcept |
Implementation of standard algebraic negative sign operation. | |
l_complex | operator- (const l_real &) const noexcept |
Implementation of standard algebraic negative sign operation. | |
l_complex | operator- (const real &) const noexcept |
Implementation of standard algebraic negative sign operation. | |
l_complex & | operator= (const cdotprecision &cd) noexcept |
Implementation of standard assigning operator. | |
l_complex & | operator= (const complex &c) noexcept |
Implementation of standard assigning operator. | |
l_complex & | operator= (const dotprecision &d) noexcept |
Implementation of standard assigning operator. | |
l_complex & | operator= (const l_real &lr) noexcept |
Implementation of standard assigning operator. | |
l_complex & | operator= (const lx_complex &) noexcept |
Implementation of standard assigning operator. | |
l_complex & | operator= (const real &r) noexcept |
Implementation of standard assigning operator. | |
Friends | |
l_complex | _l_complex (const cdotprecision &cd) |
l_real | abs (const l_complex &z) |
The absolute value of a l_complex value. | |
l_real | abs2 (const l_complex &a) |
The absolute value of a l_complex value. | |
void | accumulate (cdotprecision &cd, const l_complex &lc, const complex &c) |
The accurate scalar product of the last two arguments added to the value of the first argument. | |
void | accumulate (cdotprecision &cd, const l_complex &lc, const l_real &lr) |
The accurate scalar product of the last two arguments added to the value of the first argument. | |
void | accumulate (cdotprecision &cd, const l_complex &lc, const real &r) |
The accurate scalar product of the last two arguments added to the value of the first argument. | |
void | accumulate (cdotprecision &cd, const l_complex &lc1, const l_complex &lc2) |
The accurate scalar product of the last two arguments added to the value of the first argument. | |
l_complex | conj (const l_complex &a) |
Returns the conjugated complex value. | |
l_complex | divdown (const l_complex &a, const l_complex &b) |
Division of two real values and rounding the result downwards. | |
l_complex | divn (const l_complex &a, const l_complex &b) |
Division of two real values and rounding to the nearest value. | |
l_complex | divup (const l_complex &a, const l_complex &b) |
Division of two real values and rounding the result upwards. | |
l_real | Im (const l_complex &a) |
Returns the imaginary part of the complex value. | |
l_real & | Im (l_complex &a) |
Returns the imaginary part of the complex value. | |
bool | operator!= (const cdotprecision &a, const l_complex &c) |
Implementation of standard negated equality operation. | |
bool | operator!= (const complex &a, const l_complex &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const dotprecision &a, const l_complex &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const l_complex &a, const complex &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const l_complex &a, const dotprecision &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const l_complex &a, const l_complex &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const l_complex &a, const l_real &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const l_complex &a, const real &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const l_complex &c, const cdotprecision &a) |
Implementation of standard negated equality operation. | |
bool | operator!= (const l_real &a, const l_complex &b) |
Implementation of standard negated equality operation. | |
bool | operator!= (const real &a, const l_complex &b) |
Implementation of standard negated equality operation. | |
l_complex | operator* (const complex &b, const l_complex &a) |
Implementation of standard algebraic multiplication operation. | |
l_complex | operator* (const l_complex &a, const complex &b) |
Implementation of standard algebraic multiplication operation. | |
l_complex | operator* (const l_complex &a, const l_complex &b) |
Implementation of standard algebraic multiplication operation. | |
l_complex | operator* (const l_real &r, const l_complex &lc) |
Implementation of standard algebraic multiplication operation. | |
l_complex | operator* (const real &r, const l_complex &lc) |
Implementation of standard algebraic multiplication operation. | |
l_complex & | operator*= (l_complex &lc, const complex &c) |
Implementation of standard algebraic multiplication and allocation operation. | |
l_complex & | operator*= (l_complex &lc, const l_complex &lc1) |
Implementation of standard algebraic multiplication and allocation operation. | |
l_complex & | operator*= (l_complex &lc, const l_real &lr) |
Implementation of standard algebraic multiplication and allocation operation. | |
l_complex & | operator*= (l_complex &lc, const real &r) |
Implementation of standard algebraic multiplication and allocation operation. | |
cdotprecision | operator+ (const cdotprecision &cd, const l_complex &lc) |
Implementation of standard algebraic addition operation. | |
l_complex | operator+ (const complex &c, const l_complex &lc) |
Implementation of standard algebraic addition operation. | |
cdotprecision | operator+ (const dotprecision &cd, const l_complex &lc) |
Implementation of standard algebraic addition operation. | |
l_complex | operator+ (const l_complex &a, const l_complex &b) |
Implementation of standard algebraic addition operation. | |
cdotprecision | operator+ (const l_complex &lc, const cdotprecision &cd) |
Implementation of standard algebraic addition operation. | |
cdotprecision | operator+ (const l_complex &lc, const dotprecision &cd) |
Implementation of standard algebraic addition operation. | |
l_complex | operator+ (const l_complex &x) |
Implementation of standard algebraic positive sign operation. | |
l_complex | operator+ (const l_real &r, const l_complex &lc) |
Implementation of standard algebraic addition operation. | |
l_complex | operator+ (const real &r, const l_complex &lc) |
Implementation of standard algebraic addition operation. | |
cdotprecision & | operator+= (cdotprecision &cd, const l_complex &lc) |
Implementation of standard algebraic addition and allocation operation. | |
l_complex & | operator+= (l_complex &lc, const complex &c) |
Implementation of standard algebraic addition and allocation operation. | |
l_complex & | operator+= (l_complex &lc, const l_complex &lc1) |
Implementation of standard algebraic addition and allocation operation. | |
l_complex & | operator+= (l_complex &lc, const l_real &lr) |
Implementation of standard algebraic addition and allocation operation. | |
l_complex & | operator+= (l_complex &lc, const real &r) |
Implementation of standard algebraic addition and allocation operation. | |
cdotprecision | operator- (const cdotprecision &cd, const l_complex &lc) |
Implementation of standard algebraic subtraction operation. | |
l_complex | operator- (const complex &c, const l_complex &lc) |
Implementation of standard algebraic subtraction operation. | |
cdotprecision | operator- (const dotprecision &cd, const l_complex &lc) |
Implementation of standard algebraic subtraction operation. | |
l_complex | operator- (const l_complex &a, const l_complex &b) |
Implementation of standard algebraic subtraction operation. | |
cdotprecision | operator- (const l_complex &lc, const cdotprecision &cd) |
Implementation of standard algebraic subtraction operation. | |
cdotprecision | operator- (const l_complex &lc, const dotprecision &cd) |
Implementation of standard algebraic subtraction operation. | |
l_complex | operator- (const l_complex &x) |
Implementation of standard algebraic negative sign operation. | |
l_complex | operator- (const l_real &r, const l_complex &lc) |
Implementation of standard algebraic subtraction operation. | |
l_complex | operator- (const real &r, const l_complex &lc) |
Implementation of standard algebraic subtraction operation. | |
cdotprecision & | operator-= (cdotprecision &cd, const l_complex &lc) |
Implementation of standard algebraic subtraction and allocation operation. | |
l_complex & | operator-= (l_complex &lc, const complex &c) |
Implementation of standard algebraic subtraction and allocation operation. | |
l_complex & | operator-= (l_complex &lc, const l_complex &lc1) |
Implementation of standard algebraic subtraction and allocation operation. | |
l_complex & | operator-= (l_complex &lc, const l_real &lr) |
Implementation of standard algebraic subtraction and allocation operation. | |
l_complex & | operator-= (l_complex &lc, const real &r) |
Implementation of standard algebraic subtraction and allocation operation. | |
l_complex | operator/ (const complex &a, const l_complex &b) |
Implementation of standard algebraic division operation. | |
l_complex | operator/ (const l_complex &a, const complex &b) |
Implementation of standard algebraic division operation. | |
l_complex | operator/ (const l_complex &a, const l_complex &b) |
Implementation of standard algebraic division operation. | |
l_complex | operator/ (const l_complex &a, const l_real &b) |
Implementation of standard algebraic division operation. | |
l_complex | operator/ (const l_complex &a, const real &b) |
Implementation of standard algebraic division operation. | |
l_complex | operator/ (const l_real &a, const l_complex &b) |
Implementation of standard algebraic division operation. | |
l_complex | operator/ (const real &a, const l_complex &b) |
Implementation of standard algebraic division operation. | |
l_complex & | operator/= (l_complex &a, const complex &b) |
Implementation of standard algebraic division and allocation operation. | |
l_complex & | operator/= (l_complex &a, const l_complex &b) |
Implementation of standard algebraic division and allocation operation. | |
l_complex & | operator/= (l_complex &a, const l_real &b) |
Implementation of standard algebraic division and allocation operation. | |
l_complex & | operator/= (l_complex &a, const real &b) |
Implementation of standard algebraic division and allocation operation. | |
std::ostream & | operator<< (std::ostream &s, const l_complex &z) noexcept |
Implementation of standard output method. | |
std::string & | operator<< (std::string &s, const l_complex &a) noexcept |
Implementation of standard output method. | |
bool | operator== (const cdotprecision &a, const l_complex &c) |
Implementation of standard equality operation. | |
bool | operator== (const complex &a, const l_complex &b) |
Implementation of standard equality operation. | |
bool | operator== (const dotprecision &a, const l_complex &b) |
Implementation of standard equality operation. | |
bool | operator== (const l_complex &a, const complex &b) |
Implementation of standard equality operation. | |
bool | operator== (const l_complex &a, const dotprecision &b) |
Implementation of standard equality operation. | |
bool | operator== (const l_complex &a, const l_complex &b) |
Implementation of standard equality operation. | |
bool | operator== (const l_complex &a, const l_real &b) |
Implementation of standard equality operation. | |
bool | operator== (const l_complex &a, const real &b) |
Implementation of standard equality operation. | |
bool | operator== (const l_complex &c, const cdotprecision &a) |
Implementation of standard equality operation. | |
bool | operator== (const l_real &a, const l_complex &b) |
Implementation of standard equality operation. | |
bool | operator== (const real &a, const l_complex &b) |
Implementation of standard equality operation. | |
std::istream & | operator>> (std::istream &s, l_complex &a) noexcept |
Implementation of standard input method. | |
std::string & | operator>> (std::string &s, l_complex &a) noexcept |
Implementation of standard input method. | |
l_real | Re (const l_complex &a) |
Returns the real part of the complex value. | |
l_real & | Re (l_complex &a) |
Returns the real part of the complex value. | |
l_complex & | SetIm (l_complex &a, const l_real &b) |
Sets the imaginary part of a complex value. | |
l_complex & | SetRe (l_complex &a, const l_real &b) |
Sets the real part of a complex value. | |
int | StagPrec (const l_complex &lc) |
Returns the precision of the long datatype value. | |
The Multiple-Precision Data Type l_complex.
The multiple-precision data type l_complex is a variant of the scalar type complex, which provides support for longer numbers, thus increasing the accuracy of the data type.
Definition at line 45 of file l_complex.hpp.
|
friend |
Definition at line 113 of file l_complex.hpp.
Referenced by operator=().