Expand description
Interval arithmetic library
Macrosยง
- get_
extreme_ ๐value - handle_
float_ ๐intervals - This macro handles the
NaNandINFfloating point values. - impl_
OneTrait ๐ - map_
floating_ ๐point_ order - Ordering floating-point numbers according to their binary representations contradicts with their natural ordering. Floating-point number ordering after unsigned integer transmutation looks like:
- value_
transition ๐
Structsยง
- Interval
- The
Intervaltype represents a closed interval used for computing reliable bounds for mathematical expressions.
Enumsยง
- Nullable
Interval - An Interval that also tracks null status using a boolean interval.
Traitsยง
- OneTrait ๐
Functionsยง
- add_
bounds ๐ - Helper function used for adding the end-point values of intervals.
- apply_
operator - Applies the given binary operator the
lhsandrhsarguments. - cardinality_
ratio - This function computes the selectivity of an operation by computing the
cardinality ratio of the given input/output intervals. If this can not be
calculated for some reason, it returns
1.0meaning fully selective (no filtering). - cast_
scalar_ ๐value - Cast scalar value to the given data type using an arrow kernel.
- div_
bounds ๐ - Helper function used for dividing the end-point values of intervals.
- div_
helper_ ๐lhs_ zero_ inclusive - Divides the left-hand side interval by the right-hand side interval when the former contains zero.
- div_
helper_ ๐zero_ exclusive - Divides the left-hand side interval by the right-hand side interval when neither interval contains zero.
- handle_
overflow ๐ - This function handles cases where an operation results in an overflow. Such results are converted to an unbounded endpoint if:
- increment_
decrement ๐ - This function either increments or decrements its argument, depending on
the
INCvalue (where atruevalue corresponds to the increment). - max_
of_ ๐bounds - Returns the greater of the given interval bounds. Assumes that a
NULLvalue representsNEG_INF. - min_
of_ ๐bounds - Returns the lesser of the given interval bounds. Assumes that a
NULLvalue representsINF. - mul_
bounds ๐ - Helper function used for multiplying the end-point values of intervals.
- mul_
helper_ ๐multi_ zero_ inclusive - Multiplies two intervals that both contain zero.
- mul_
helper_ ๐single_ zero_ inclusive - Multiplies two intervals when only left-hand side interval contains zero.
- mul_
helper_ ๐zero_ exclusive - Multiplies two intervals when neither of them contains zero.
- next_
value ๐ - next_
value_ ๐helper - This function returns the next/previous value depending on the
INCvalue. Iftrue, it returns the next value; otherwise it returns the previous value. - prev_
value ๐ - satisfy_
greater - This function updates the given intervals by enforcing (i.e. propagating)
the inequality
left > right(or theleft >= rightinequality, ifstrictistrue). - sub_
bounds ๐ - Helper function used for subtracting the end-point values of intervals.