INTERVAL_VECTOR
.
INTERVAL_VECTOR Variable [(Dimension)]
The basic operations +, -, *, and /, the unary operators
+ and - as well as +=, -=, *=, and /= are
defined for interval vectors. REAL
or VECTOR
operands may also be used
instead of interval operands, as long as one operand is an INTERVAL
type.
Comparisons of interval vectors are possible with == and !=. Inclusion properties may be tested with <= and < where the latter tests for inclusion in the interior. For example:
a <= b
returns TRUE
, if the interval vector a
is contained in the interval
vector b
.
All comparisons are performed componentwise and the result of a
vector comparison is true, if it is true for all components. Otherwise the result is
FALSE
.
If i is an INT
expression and v an interval vector, v(i)
denotes the i-th element of the interval vector.
Additionally, the following functions are provided:
INT Dimension (INTERVAL_VECTOR v)
void Resize (INTERVAL_VECTOR v, INT i)
void MakeTemporary (INTERVAL_VECTOR v)
See section Vector Operations --- Vector.h, function MakeTemporary
for more information.
void MakePermanent (INTERVAL_VECTOR v)
See section Configuration, for details.
void Clear (INTERVAL_VECTOR v)
void Initialize (INTERVAL_VECTOR v, INTERVAL a)
INTERVAL_VECTOR AddBounds (VECTOR v, VECTOR w)
INTERVAL_VECTOR SubBounds (VECTOR v, VECTOR w)
INTERVAL_VECTOR MulBounds (REAL r, VECTOR v)
INTERVAL_VECTOR MulBounds (VECTOR v, VECTOR w)
INTERVAL_VECTOR DivBounds (VECTOR v, REAL r)
VECTOR Inf (INTERVAL_VECTOR v)
VECTOR Sup (INTERVAL_VECTOR v)
INTERVAL_VECTOR Hull (VECTOR v)
INTERVAL_VECTOR Hull (v, w)
VECTOR
or INTERVAL_VECTOR
.
INTERVAL_VECTOR SymHull (VECTOR v)
VECTOR Mid (INTERVAL_VECTOR v)
VECTOR Diam (INTERVAL_VECTOR v)
VECTOR Abs (INTERVAL_VECTOR v)
BOOL Intersection (INTERVAL_VECTOR u, INTERVAL_VECTOR v, INTERVAL_VECTOR w)
TRUE
is returned and u
contains the intersection. Otherwise FALSE
is returned and the contents of
u are undefined.
INTERVAL Sqr (INTERVAL_VECTOR v)
INTERVAL Norm (INTERVAL_VECTOR v)