Skip to content

Commit 5727eed

Browse files
authored
Update coloring.jl
1 parent 2944dad commit 5727eed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/highlevel/coloring.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function (alg::ApproximateJacobianSparsity)(ad::AutoSparseFiniteDiff, f::F, x; f
7878
cache = FiniteDiff.JacobianCache(x, fx)
7979
J = fill!(similar(fx, length(fx), length(x)), 0)
8080
x_ = similar(x)
81-
ε = eps(eltype(x))^(1 / 3)
81+
ε = eps(eltype(x)) * 100
8282
for _ in 1:ntrials
8383
randn!(rng, x_)
8484
J_cache = FiniteDiff.finite_difference_jacobian(f, x, cache)
@@ -95,7 +95,7 @@ function (alg::ApproximateJacobianSparsity)(ad::AutoSparseFiniteDiff, f!::F, fx,
9595
J = fill!(similar(fx, length(fx), length(x)), 0)
9696
J_cache = similar(J)
9797
x_ = similar(x)
98-
ε = eps(eltype(x))^(1 / 3)
98+
ε = eps(eltype(x)) * 100
9999
for _ in 1:ntrials
100100
randn!(rng, x_)
101101
FiniteDiff.finite_difference_jacobian!(J_cache, f!, x_, cache)

0 commit comments

Comments
 (0)