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;
267inline bool operator ==(
const complex &c,
const cdotprecision &a)
noexcept {
return(Re(c)==a.re && Im(c)==a.im); }
268inline bool operator !=(
const complex &c,
const cdotprecision &a)
noexcept {
return(Re(c)!=a.re || Im(c)!=a.im); }
269inline bool operator ==(
const cdotprecision &a,
const complex &c)
noexcept {
return(Re(c)==a.re && Im(c)==a.im); }
270inline bool operator !=(
const cdotprecision &a,
const complex &c)
noexcept {
return(Re(c)!=a.re || Im(c)!=a.im); }
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 dotprecision & Re(cdotprecision &a)
Returns the real part of the complex dotprecision value.
cdotprecision()
Constructor of class cdotprecision.
friend dotprecision & Im(cdotprecision &a) noexcept
Returns the imaginary part of the complex dotprecision value.
cdotprecision & operator=(const real &a)
Implementation of standard assigning operator.
The Data Type dotprecision.
void set_k(unsigned int i)
Set precision for computation of dot products.
The Multiple-Precision Data Type 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 &)