31 : re(a), im(b), k(0) { re.set_k(0); im.set_k(0); }
34 : re(a), im(b), k(0) {}
37 : re(a.re), im(a.im), k(a.k) {}
40 : re(a), im(b), k(0) {}
46 : re(r), im(0), k(0) {}
49 : re(
Re(c)),im(
Im(c)), k(0) {}
52 : re(r), im(0), k(0) { re.set_k(0); im.set_k(0); }
55 : re(r), im(0), k(0) {}
62 re=a;im=0;
return *
this;
67 re=
Re(a),im=
Im(a);
return *
this;
71 re=a;im=0;
return *
this;
75 re=a.re,im=a.im;
return *
this;
79 re=a;im=0;
return *
this;
271inline bool operator ==(
const real &c,
const cdotprecision &a)
noexcept {
return(c==a.re && !a.im); }
272inline bool operator !=(
const real &c,
const cdotprecision &a)
noexcept {
return(c!=a.re || !!a.im); }
273inline bool operator ==(
const cdotprecision &a,
const real &c)
noexcept {
return(c==a.re && !a.im); }
274inline bool operator !=(
const cdotprecision &a,
const real &c)
noexcept {
return(c!=a.re || !!a.im); }
278 return(c==a.re && !a.im);
283 return(c!=a.re || !!a.im);
288 return(c==a.re && !a.im);
293 return(c!=a.re || !!a.im);
336 return !a.re && !a.im;
The Data Type cdotprecision.
friend cdotprecision & SetIm(cdotprecision &a, const dotprecision &b) noexcept
Sets the imaginary part of a complex dotprecision value.
friend cdotprecision _cdotprecision(const dotprecision &)
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
friend dotprecision & Re(cdotprecision &a)
Returns the real part of the complex dotprecision value.
friend cdotprecision operator-(const cdotprecision &) noexcept
Implementation of standard algebraic negative sign operation.
friend cdotprecision conj(const cdotprecision &a) noexcept
Returns the conjugated complex dotprecision value.
friend cdotprecision & SetRe(cdotprecision &a, const dotprecision &b) noexcept
Sets the real part of a complex dotprecision value.
cdotprecision()
Constructor of class cdotprecision.
friend dotprecision & Im(cdotprecision &a) noexcept
Returns the imaginary part of the complex dotprecision value.
friend cdotprecision operator+(const cdotprecision &) noexcept
Implementation of standard algebraic positive sign operation.
cdotprecision & operator=(const real &a)
Implementation of standard assigning operator.
friend void accumulate(cdotprecision &, const complex &, const complex &) noexcept
The accurate scalar product of the last two arguments added to the value of the first argument.
The Data Type dotprecision.
The Multiple-Precision Data Type l_complex.
l_complex(void) noexcept
Constructor of class l_complex.
The Multiple-Precision Data Type l_real.
The namespace cxsc, providing all functionality of the class library C-XSC.
cdotprecision & operator+=(cdotprecision &cd, const l_complex &lc) noexcept
Implementation of standard algebraic addition and allocation operation.
cdotprecision _cdotprecision(const l_complex &)