diff --git a/.travis.yml b/.travis.yml index 47e7ac7f..0ac11b69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,8 @@ os: - osx julia: - 1.0 - - 1.1 + - 1.2 + - 1.3 - nightly notifications: email: false diff --git a/Project.toml b/Project.toml index e4aa578c..adde3045 100644 --- a/Project.toml +++ b/Project.toml @@ -1,11 +1,11 @@ name = "Nabla" uuid = "49c96f43-aa6d-5a04-a506-44c7070ebe78" -version = "0.12.1" +version = "0.12.2" [deps] DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b" DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74" -FDM = "e25cca7e-83ef-51fa-be6c-dfe2a3123128" +FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" @@ -13,7 +13,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [compat] DiffRules = "^0.0" DualNumbers = ">=0.6.0" -FDM = "^0.6" +FiniteDifferences = "0.7, 0.8" SpecialFunctions = ">=0.5.0" julia = "^1.0" diff --git a/docs/Project.toml b/docs/Project.toml index 53bc6f84..4e3e5a75 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,5 +1,6 @@ [deps] Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +Nabla = "49c96f43-aa6d-5a04-a506-44c7070ebe78" [compat] Documenter = "~0.19" diff --git a/docs/src/pages/custom.md b/docs/src/pages/custom.md index 3cbacf40..025121c4 100644 --- a/docs/src/pages/custom.md +++ b/docs/src/pages/custom.md @@ -152,7 +152,7 @@ of the documentation. In order to ensure correctness for custom sensitivity definitions, we can compare the results against those computed by the method of finite differences. The finite differencing itself is implemented in the Julia package -[FDM](https://github.com/invenia/FDM.jl), but Nabla defines and exports functionality +[FiniteDifferences.jl](https://github.com/juliadiff/FiniteDifferences.jl), but Nabla defines and exports functionality that permits checking results against finite differencing. The primary workhorse function for this is `check_errs`. diff --git a/src/finite_differencing.jl b/src/finite_differencing.jl index b4ae98b5..b396c837 100644 --- a/src/finite_differencing.jl +++ b/src/finite_differencing.jl @@ -1,4 +1,4 @@ -using FDM +using FiniteDifferences export check_Dv, check_Dv_update, check_errs, assert_approx_equal, domain1, domain2, points, in_domain @@ -21,7 +21,7 @@ function approximate_Dv( x::Tuple{Vararg{∇ArrayOrScalar}}, v::Tuple{Vararg{∇ArrayOrScalar}} ) - return FDM.Central(5, 1)(ε -> sum(ȳ .* f((x .+ ε .* v)...))) + return FiniteDifferences.Central(5, 1)(ε -> sum(ȳ .* f((x .+ ε .* v)...))) end approximate_Dv(f, ȳ::∇ArrayOrScalar, x::∇ArrayOrScalar, v::∇ArrayOrScalar) =