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)"));
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));
friend idotprecision & UncheckedSetInf(idotprecision &, const dotprecision &)
Returns the dotprecison interval with the unchecked new given infimum value.
The Data Type idotprecision.
The Data Type dotprecision.
friend dotprecision & Sup(idotprecision &a)
Returns the supremum of a dotprecison interval.
The namespace cxsc, providing all functionality of the class library C-XSC.
friend idotprecision & operator&=(idotprecision &, const idotprecision &)
Allocates the intersection of the arguments to the first argument.
The Scalar Type interval.
friend bool operator>=(const idotprecision &, const idotprecision &)
Implementation of standard greater-or-equal-than operation.
friend idotprecision & SetInf(idotprecision &, const dotprecision &)
Returns the dotprecison interval with the new given infimum value.
friend bool operator>(const idotprecision &, const idotprecision &)
Implementation of standard greater-than operation.
friend idotprecision & operator|=(idotprecision &, const idotprecision &)
Allocates the convex hull of the arguments to the first argument.
friend idotprecision operator&(const idotprecision &, const idotprecision &)
Returns the intersection of the arguments.
friend idotprecision operator-(const idotprecision &)
Implementation of standard algebraic negative sign operation.
friend bool operator==(const idotprecision &, const idotprecision &)
Implementation of standard equality operation.
friend idotprecision & operator+=(idotprecision &, const idotprecision &)
Implementation of standard algebraic addition and allocation operation.
friend idotprecision abs(const idotprecision &a)
Returns the absolute value of a dotprecision interval.
friend idotprecision & SetSup(idotprecision &, const dotprecision &)
Returns the dotprecison interval with the new given supremum value.
friend idotprecision _unchecked_idotprecision(const real &, const real &)
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC...
friend void accumulate(idotprecision &, const interval &, const interval &)
The accurate scalar product of the last two arguments added to the value of the first argument...
friend idotprecision & UncheckedSetSup(idotprecision &, const dotprecision &)
Returns the dotprecison interval with the unchecked new given supremum value.
friend bool operator!(const idotprecision &)
Implementation of standard negation operation.
friend idotprecision operator|(const idotprecision &, const idotprecision &)
Returns the convex hull of the arguments.
friend bool IsEmpty(const idotprecision &a)
Returns if the dotprecision interval is empty.
friend idotprecision & operator-=(idotprecision &, const idotprecision &)
Implementation of standard algebraic subtraction and allocation operation.
friend bool operator<=(const idotprecision &, const idotprecision &)
Implementation of standard less-or-equal-than operation.
idotprecision()
Constructor of class idotprecision.
friend idotprecision _idotprecision(const real &)
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC...
friend idotprecision operator+(const idotprecision &)
Implementation of standard algebraic positive sign operation.
friend bool operator!=(const idotprecision &, const idotprecision &)
Implementation of standard negated equality operation.
friend dotprecision & Inf(idotprecision &a)
Returns the infimum of a dotprecison interval.
friend bool operator<(const idotprecision &, const idotprecision &)
Implementation of standard less-than operation.