Skip to content

Commit

Permalink
Replace autodiff by ForwardDiff.jl package
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Apr 7, 2016
1 parent d1905e8 commit ebb2e34
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 151 deletions.
1 change: 1 addition & 0 deletions REQUIRE
Expand Up @@ -2,3 +2,4 @@ julia 0.4
CRlibm 0.2.2
Compat 0.7.11
FixedSizeArrays
ForwardDiff
2 changes: 1 addition & 1 deletion src/ValidatedNumerics.jl
Expand Up @@ -54,7 +54,7 @@ export
## Root finding
export
newton, krawczyk,
differentiate, D, # should these be exported?
derivative, # reexport derivative from ForwardDiff
Root, is_unique,
find_roots,
find_roots_midpoint
Expand Down
90 changes: 0 additions & 90 deletions src/root_finding/automatic_differentiation.jl

This file was deleted.

6 changes: 5 additions & 1 deletion src/root_finding/root_finding.jl
@@ -1,5 +1,9 @@
# This file is part of the ValidatedNumerics.jl package; MIT licensed

using ForwardDiff

const D = ForwardDiff.derivative

immutable Root{T<:Real}
interval::Interval{T}
root_type::Symbol
Expand All @@ -13,7 +17,7 @@ is_unique{T}(root::Root{T}) = root.root_type == :unique
(a::Root, b::Root) = a.interval b.interval


include("automatic_differentiation.jl")
# include("automatic_differentiation.jl")
include("newton.jl")
include("krawczyk.jl")

Expand Down
58 changes: 0 additions & 58 deletions test/root_finding_tests/auto_diff.jl

This file was deleted.

2 changes: 2 additions & 0 deletions test/root_finding_tests/root_finding.jl
@@ -1,6 +1,8 @@
using ValidatedNumerics
using FactCheck

const D = ValidatedNumerics.derivative

include("wilkinson.jl")


Expand Down
1 change: 0 additions & 1 deletion test/runtests.jl
Expand Up @@ -19,7 +19,6 @@ include("multidim_tests/multidim.jl")

# Root-finding tests:

include("root_finding_tests/auto_diff.jl")
include("root_finding_tests/root_finding.jl")

# Multidimensional boxes tests:
Expand Down

0 comments on commit ebb2e34

Please sign in to comment.