31 : inf(a), sup(b), k(0)
34 cxscthrow(ERROR_IDOTPRECISION_EMPTY_INTERVAL(
"inline idotprecision::idotprecision(const dotprecision &a,const dotprecision &b)"));
40 : inf(a.inf), sup(a.sup), k(a.k)
116 return idotprecision((a.inf<b.inf)?a.inf:b.inf,(a.sup>b.sup)?a.sup:b.sup);
164 return idotprecision((a.inf>b.inf)?a.inf:b.inf,(a.sup<b.sup)?a.sup:b.sup);
287 cxscthrow(ERROR_IDOTPRECISION_EMPTY_INTERVAL(
"inline idotprecision & operator &=(idotprecision &a,const idotprecision &b)"));
305 cxscthrow(ERROR_IDOTPRECISION_EMPTY_INTERVAL(
"inline idotprecision & operator &=(idotprecision &a,const dotprecision &b)"));
317inline bool operator ==(
const real &r,
const idotprecision &a)
noexcept {
return(r==a.inf && r==a.sup); }
318inline bool operator !=(
const real &r,
const idotprecision &a)
noexcept {
return(r!=a.inf || r!=a.sup); }
319inline bool operator ==(
const idotprecision &a,
const real &r)
noexcept {
return(r==a.inf && r==a.sup); }
320inline bool operator !=(
const idotprecision &a,
const real &r)
noexcept {
return(r!=a.inf || r!=a.sup); }
331 return(a.inf>=b.inf && a.sup<=b.sup);
335 return(a.inf<=b.inf && a.sup>=b.sup);
339 return(a.inf>b.inf && a.sup<b.sup);
343 return(a.inf<b.inf && a.sup>b.sup);
348 return(a>=b.inf && a<=b.sup);
352 return(a<=b.inf && a>=b.sup);
356 return(a>b.inf && a<b.sup);
361 return(a.inf>=b && a.sup<=b);
365 return(a.inf<=b && a.sup>=b);
369 return(a.inf<b && a.sup>b);
374 return(a>=b.inf && a<=b.sup);
378 return(a<=b.inf && a>=b.sup);
382 return(a>b.inf && a<b.sup);
387 return(a.inf>=b && a.sup<=b);
391 return(a.inf<=b && a.sup>=b);
395 return(a.inf<b && a.sup>b);
400 return(
Inf(a)>=b.inf &&
Sup(a)<=b.sup);
404 return(
Inf(a)<=b.inf &&
Sup(a)>=b.sup);
408 return(
Inf(a)>b.inf &&
Sup(a)<b.sup);
412 return(
Inf(a)<b.inf &&
Sup(a)>b.sup);
417 return(a.inf>=
Inf(b) && a.sup<=
Sup(b));
421 return(a.inf<=
Inf(b) && a.sup>=
Sup(b));
425 return(a.inf>
Inf(b) && a.sup<
Sup(b));
429 return(a.inf<
Inf(b) && a.sup>
Sup(b));
The Data Type dotprecision.
dotprecision(void) noexcept
Constructor of class dotprecision.
The Data Type idotprecision.
friend dotprecision & Inf(idotprecision &a) noexcept
Returns the infimum of a dotprecison interval.
friend dotprecision & Sup(idotprecision &a) noexcept
Returns the supremum of a dotprecison interval.
friend idotprecision operator+(const idotprecision &) noexcept
Implementation of standard algebraic positive sign operation.
friend bool IsEmpty(const idotprecision &a) noexcept
Returns if the dotprecision interval is empty.
friend void accumulate(idotprecision &, const interval &, const interval &) noexcept
The accurate scalar product of the last two arguments added to the value of the first argument.
friend idotprecision & SetInf(idotprecision &, const dotprecision &) noexcept
Returns the dotprecison interval with the new given infimum value.
friend idotprecision & UncheckedSetSup(idotprecision &, const dotprecision &) noexcept
Returns the dotprecison interval with the unchecked new given supremum value.
friend idotprecision operator-(const idotprecision &) noexcept
Implementation of standard algebraic negative sign operation.
friend idotprecision & SetSup(idotprecision &, const dotprecision &) noexcept
Returns the dotprecison interval with the new given supremum value.
idotprecision()
Constructor of class idotprecision.
friend idotprecision & UncheckedSetInf(idotprecision &, const dotprecision &) noexcept
Returns the dotprecison interval with the unchecked new given infimum value.
The Scalar Type interval.
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.
idotprecision _unchecked_idotprecision(const real &a, const real &b)
idotprecision _idotprecision(const real &a)
ivector abs(const cimatrix_subv &mv) noexcept
Returns the absolute value of the matrix.