42 cxscthrow(ERROR_CINTERVAL_EMPTY_INTERVAL(
"cinterval::cinterval(const complex & a,const complex & b)"));
286 if (
Inf(tmp.re) >
Sup(tmp.re) ||
Inf(tmp.im) >
Sup(tmp.im))
287 cxscthrow(ERROR_CINTERVAL_EMPTY_INTERVAL(
"inline cinterval operator &(const cinterval & a,const cinterval & b)"));
431 return !a.re && !a.im;
436 return a.re==b.re && a.im==b.im;
441 return a.re!=b.re || a.im!=b.im;
536 cxscthrow(ERROR_CINTERVAL_EMPTY_INTERVAL(
"inline cinterval & SetInf(cinterval & a,const complex & b)"));
547 cxscthrow(ERROR_CINTERVAL_EMPTY_INTERVAL(
"inline cinterval & SetSup(cinterval & a,const complex & b)"));
558 cxscthrow(ERROR_CINTERVAL_EMPTY_INTERVAL(
"inline cinterval & SetInf(cinterval & a,const real & b)"));
569 cxscthrow(ERROR_CINTERVAL_EMPTY_INTERVAL(
"inline cinterval & SetSup(cinterval & a,const real & b)"));
641#ifdef CXSC_FAST_COMPLEX_OPERATIONS
644 return mult_operator(a,b);
650 if (0.0 <=
Re(b) && 0.0 <=
Im(b) ) {
651 cxscthrow(DIV_BY_ZERO(
"cinterval operator / (const cinterval&, const cinterval&)"));
654#ifdef CXSC_FAST_COMPLEX_OPERATIONS
655 return a * (1.0 / b);
657 return div_operator(a,b);
The Data Type cdotprecision.
The Data Type cidotprecision.
The Scalar Type cinterval.
friend complex mid(const cinterval &) noexcept
Returns the rounded middle of the complex interval.
friend cinterval & UncheckedSetInf(cinterval &, const complex &) noexcept
Returns the complex interval with the unchecked new given infimum value.
friend cinterval & SetRe(cinterval &a, const interval &b)
Sets the real interval of the complex interval.
friend complex Sup(const cinterval &) noexcept
Returns the supremum of a complex interval.
cinterval(void) noexcept
Constructor of class cinterval.
friend real SupRe(const cinterval &a) noexcept
Returns the supremum of the real interval of the complex interval.
friend real InfRe(const cinterval &a) noexcept
Returns the infimum of the real interval of the complex interval.
friend complex diam(const cinterval &) noexcept
Returns the rounded diameter of the complex interval.
friend cinterval & UncheckedSetSup(cinterval &, const complex &) noexcept
Returns the complex interval with the unchecked new given supremum value.
friend cinterval & SetInf(cinterval &, const complex &)
Returns the complex interval with the new given infimum value.
friend interval & Re(cinterval &a) noexcept
Returns the real interval of the complex interval.
friend real SupIm(const cinterval &a) noexcept
Returns the supremum of the imaginary interval of the complex interval.
friend interval & Im(cinterval &a) noexcept
Returns the imaginary interval of the complex interval.
friend cinterval & SetIm(cinterval &a, const interval &b)
Sets the imaginary interval of the complex interval.
friend complex Inf(const cinterval &) noexcept
Returns the infimum of a complex interval.
cinterval & operator=(const real &) noexcept
Implementation of standard assigning operator.
friend real InfIm(const cinterval &a) noexcept
Returns the infimum of the imaginary interval of the complex interval.
friend cinterval & SetSup(cinterval &, const complex &)
Returns the complex interval with the new given supremum value.
friend cinterval conj(const cinterval &) noexcept
Returns the conjugated complex interval.
The Data Type dotprecision.
The Data Type idotprecision.
The Scalar Type interval.
The namespace cxsc, providing all functionality of the class library C-XSC.
complex _complex(const real &a) noexcept
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
cinterval _unchecked_cinterval(const complex &a, const complex &b) noexcept
cdotprecision & operator+=(cdotprecision &cd, const l_complex &lc) noexcept
Implementation of standard algebraic addition and allocation operation.
civector operator/(const cimatrix_subv &rv, const cinterval &s) noexcept
Implementation of division operation.
cvector diam(const cimatrix_subv &mv) noexcept
Returns the diameter of the matrix.
cimatrix & operator*=(cimatrix &m, const cinterval &c) noexcept
Implementation of multiplication and allocation operation.
cvector mid(const cimatrix_subv &mv) noexcept
Returns the middle of the matrix.
civector operator*(const cimatrix_subv &rv, const cinterval &s) noexcept
Implementation of multiplication operation.
cinterval _cinterval(const real &a) noexcept
cimatrix & operator/=(cimatrix &m, const cinterval &c) noexcept
Implementation of division and allocation operation.