AnderGray / IntervalUnionArithmetic.jl

An implementation of interval union arithmetic in Julia
MIT License
11 stars 4 forks source link

Representation of empty union #19

Closed abraunst closed 2 years ago

abraunst commented 2 years ago

The empty union could be represented by a vector of Intervals of length == 0 (i.e. a union of no intervals) instead of a vector of length == 1 with a single empty set (i.e. a union of a single empty set). This could simplify the code a bit, because there will be no need to keep always an empty Interval in the stored vector.

Originally posted by @abraunst in https://github.com/AnderGray/IntervalUnionArithmetic.jl/issues/18#issuecomment-1028175731

abraunst commented 2 years ago

Fixed by PR #21