15 template<
typename Number>
51 template<
typename Number>
98 template<
typename Number>
117 template<
typename Number>
127 template<
typename Number>
142 template<
typename Number>
161 template<
typename Number>
166 if (intersection.is_empty()) {
172 bool res =
set_union(lhs, rhs, tmp, tmp);
186 template<
typename Number>
carl is the main namespace for the library.
bool set_symmetric_difference(const Interval< Number > &lhs, const Interval< Number > &rhs, Interval< Number > &resA, Interval< Number > &resB)
Calculates the symmetric difference of two intervals in a set-theoretic manner (can result in two dis...
bool set_union(const Interval< Number > &lhs, const Interval< Number > &rhs, Interval< Number > &resA, Interval< Number > &resB)
Computes the union of two intervals (can result in two distinct intervals).
bool set_is_proper_subset(const Interval< Number > &lhs, const Interval< Number > &rhs)
Checks whether lhs is a proper subset of rhs.
static BoundType get_other_bound_type(BoundType type)
Interval< Number > set_intersection(const Interval< Number > &lhs, const Interval< Number > &rhs)
Intersects two intervals in a set-theoretic manner.
bool set_is_subset(const Interval< Number > &lhs, const Interval< Number > &rhs)
Checks whether lhs is a subset of rhs.
bool set_have_intersection(const Interval< Number > &lhs, const Interval< Number > &rhs)
bool set_difference(const Interval< Number > &lhs, const Interval< Number > &rhs, Interval< Number > &resA, Interval< Number > &resB)
Calculates the difference of two intervals in a set-theoretic manner: lhs \ rhs (can result in two di...
bool set_complement(const Interval< Number > &interval, Interval< Number > &resA, Interval< Number > &resB)
Calculates the complement in a set-theoretic manner (can result in two distinct intervals).
@ INFTY
the given bound is interpreted as minus or plus infinity depending on whether it is the left or the r...
bool bounds_connect(const UpperBound< Number > &lhs, const LowerBound< Number > &rhs)
Check whether the two bounds connect, for example as for ...3),[3...
The class which contains the interval arithmetic including trigonometric functions.
bool is_empty() const
Function which determines, if the interval is empty.
BoundType lower_bound_type() const
The getter for the lower bound type of the interval.
const Number & upper() const
The getter for the upper boundary of the interval.
const Number & lower() const
The getter for the lower boundary of the interval.
bool is_consistent() const
A quick check for the bound values.
static Interval< Number > empty_interval()
Method which returns the empty interval rooted at 0.
BoundType upper_bound_type() const
The getter for the upper bound type of the interval.