Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
julia 0.5
IntervalArithmetic 0.9
IntervalRootFinding 0.1
IntervalContractors 0.1
MacroTools 0.3

6 changes: 4 additions & 2 deletions src/IntervalConstraintProgramming.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ __precompile__()

module IntervalConstraintProgramming

using IntervalArithmetic, IntervalRootFinding
using IntervalArithmetic,
IntervalRootFinding,
IntervalContractors

using MacroTools

Expand All @@ -20,8 +22,8 @@ export
Vol,
show_code

const reverse_operations = IntervalContractors.reverse_operations

include("reverse_mode.jl")
include("ast.jl")
include("code_generation.jl")
include("contractor.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/ast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function process_call!(flatAST::FlatAST, ex, new_var=nothing)

#@show op

if op ∈ keys(rev_ops) # standard operator
if op ∈ keys(reverse_operations) # standard operator
if new_var == nothing
new_var = make_symbol()
end
Expand Down
2 changes: 1 addition & 1 deletion src/code_generation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function emit_backward_code(a::Assignment)
args = isa(a.args, Vector) ? a.args : [a.args]

return_args = [a.lhs, args...]
rev_op = rev_ops[a.op] # find reverse operation
rev_op = reverse_operations[a.op] # find reverse operation

if rev_op == :() # empty
args = make_tuple(args)
Expand Down
130 changes: 0 additions & 130 deletions src/reverse_mode.jl

This file was deleted.

6 changes: 0 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,3 @@ end

@test C3(A, x) == IntervalBox(sqrt(A / 16))
end

@testset "power_rev for odd power" begin
x = -∞..∞
a = -8..27
power_rev(a, x, 3)[2] == Interval(-2.0000000000000004, 3.0000000000000004)
end