Skip to content

Commit 3148fa4

Browse files
Merge pull request #83 from nickrobinson251/npr/fdm-to-finitedifferences
Update FDM to FiniteDifferences
2 parents 4303bb8 + 6dcb0c9 commit 3148fa4

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1111

1212
[compat]
1313
ChainRulesCore = "^0.1"
14-
FDM = "^0.6"
14+
FiniteDifferences = "^0.7"
1515
julia = "^1.0"
1616

1717
[extras]
18-
FDM = "e25cca7e-83ef-51fa-be6c-dfe2a3123128"
18+
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
1919
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
2020
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2121
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2222
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2323

2424
[targets]
25-
test = ["FDM", "Random", "Test", "SpecialFunctions", "NaNMath"]
25+
test = ["FiniteDifferences", "NaNMath", "Random", "SpecialFunctions", "Test"]

test/rulesets/LinearAlgebra/factorization.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ using ChainRules: level2partition, level3partition, chol_blocked_rev, chol_unblo
4848
@test dp isa ChainRules.DNERule
4949
= (p === :U ? UpperTriangular : LowerTriangular)(randn(rng, size(Y)))
5050
# NOTE: We're doing Nabla-style testing here and avoiding using the `j′vp`
51-
# machinery from FDM because that isn't set up to respect necessary special
52-
# properties of the input. In the case of the Cholesky factorization, we
53-
# need the input to be Hermitian.
51+
# machinery from FiniteDifferences because that isn't set up to respect
52+
# necessary special properties of the input. In the case of the Cholesky
53+
# factorization, we need the input to be Hermitian.
5454
X̄_ad = dot(dX(dF(Ȳ)), V)
5555
X̄_fd = central_fdm(5, 1)() do ε
5656
dot(Ȳ, getproperty(cholesky(X .+ ε .* V), p))

test/runtests.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
using ChainRules, Test, FDM, LinearAlgebra, LinearAlgebra.BLAS, Random, Statistics
21
using Base.Broadcast: broadcastable
3-
import LinearAlgebra: dot
2+
using ChainRules
3+
using ChainRulesCore
4+
using FiniteDifferences
5+
using LinearAlgebra
6+
using LinearAlgebra.BLAS
7+
using LinearAlgebra: dot
8+
using Random
9+
using Statistics
10+
using Test
411

512
# For testing purposes we use a lot of
613
using ChainRulesCore: add, cast, extern, accumulate, accumulate!, store!, @scalar_rule,

test/test_util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using FDM: jvp, j′vp
1+
using FiniteDifferences: jvp, j′vp
22

33
const _fdm = central_fdm(5, 1)
44

0 commit comments

Comments
 (0)