diff --git a/examples/abs_normal.jl b/examples/abs_normal.jl index 2eda6a6..df75102 100644 --- a/examples/abs_normal.jl +++ b/examples/abs_normal.jl @@ -1,6 +1,6 @@ -include("../src/ADOLC.jl") -using .ADOLC.AdoubleModule -using .ADOLC +using ADOLC +using ADOLC.AdoubleModule + enableMinMaxUsingAbs() @@ -46,4 +46,6 @@ using Test @test abs_normal_problem.L[1, 1] == 0.0 @test abs_normal_problem.L[1, 2] == 0.0 @test abs_normal_problem.L[2, 1] == 0.0 -@test abs_normal_problem.L[2, 2] == 0.0 \ No newline at end of file +@test abs_normal_problem.L[2, 2] == 0.0 + +print(abs_normal_problem.L[2, 2]) \ No newline at end of file diff --git a/examples/forward_reverse.jl b/examples/forward_reverse.jl index bd73cc0..f571159 100644 --- a/examples/forward_reverse.jl +++ b/examples/forward_reverse.jl @@ -1,6 +1,6 @@ -include("../src/ADOLC.jl") -using .ADOLC.array_types -using .ADOLC.AdoubleModule + +using ADOLC.array_types +using ADOLC.AdoubleModule n = 4 diff --git a/examples/gradient.jl b/examples/gradient.jl index f7b0e3b..cea9775 100644 --- a/examples/gradient.jl +++ b/examples/gradient.jl @@ -1,5 +1,5 @@ -include("../src/ADOLC.jl") -using .ADOLC.AdoubleModule + +using ADOLC.AdoubleModule function chained_lq(x) return ( diff --git a/src/AdoubleModule.jl b/src/AdoubleModule.jl index e2df875..897b4ed 100644 --- a/src/AdoubleModule.jl +++ b/src/AdoubleModule.jl @@ -9,7 +9,6 @@ module AdoubleModule function __init__() @initcxx - println("init adouble") end # convient inits for vector of independant and dependant