Next: Coefficients, Previous: Scalars, Up: Scalars & Intervals & Coefficients
typedef struct ap_interval_t { ap_scalar_t* inf; ap_scalar_t* sup; } ap_interval_t;
Intervals on scalars.
• Initializing intervals | ||
• Assigning intervals | ||
• Comparing intervals | ||
• Other operations on intervals | ||
• Array of intervals |
Next: Assigning intervals, Previous: Intervals, Up: Intervals
Allocate an interval (with scalars of default type DOUBLE, the most economical).
Deallocate an interval.
Change the type of the bounds of the interval (mainly for internal use).
Next: Comparing intervals, Previous: Initializing intervals, Up: Intervals
Set the value of rop from op.
Set the value of rop from the interval [inf,sup].
Set the value of rop from the interval [inf,sup] or [numinf/deninf,numsup/densup]. The scalars are of type MPQ.
Set the value of rop from the interval [inf,sup]. The scalars are of type DOUBLE.
Set the value of rop resp. to the top interval [-oo,+oo] or to the empty interval [+1,-1].
Combined allocation and assignement.
Next: Other operations on intervals, Previous: Assigning intervals, Up: Intervals
Return true
if the interval is resp. the universe interval
([-oo,+oo]) or an empty interval.
Inclusion test.
Return true if the interval op1 is included in op2.
Equality test.
Return true if the interval op1 is included in op2.
Non-total comparison.
0 equality
-1 op1 included in op2
+1 op2 included in op1
-2 op1.inf less than op2.inf
+2 op1.inf greater than op2.inf
Next: Array of intervals, Previous: Comparing intervals, Up: Intervals
Negation.
Exchange the values of op1 and op2.
Return an hash code (for instance for OCaml interface).
Print op on the stream stream.
Previous: Other operations on intervals, Up: Intervals
Allocate an array of intervals, initialized with [0,0] values.
Clearing and deallocating an array of intervals.
Previous: Other operations on intervals, Up: Intervals