Skip to content

Commit e77a7bc

Browse files
committed
Refactor Contractor so that the call is a standard function call (#48)
* Refactor flatAST with methods * FlattenedAST -> FlatAST * forward_backward replaces forward_pass and backward_pass * Working NewContractor with action via function call * Make contractors in separators use new syntax (accepting IntervalBox. This seems to break pave -- when empty? * Finish rewrite to use forward_backward. Contractor call is messy. * Clean up functions * Clean up contractor code * Clean up separator code * Add for contractor call * Make contractors return IntervalBox'es and deal with fallout * Correct sqr_rev
1 parent 3bdedf8 commit e77a7bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/IntervalConstraintProgramming.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@ include("setinversion.jl")
3232
include("volume.jl")
3333
include("functions.jl")
3434

35+
import Base.∪
36+
import ValidatedNumerics: IntervalBox
37+
{N,T}(X::IntervalBox{N,T}, Y::IntervalBox{N,T}) =
38+
IntervalBox( [(x y) for (x,y) in zip(X, Y)]... )
3539

3640
end # module

0 commit comments

Comments
 (0)