Skip to content

Commit

Permalink
Update coloring.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal authored Dec 13, 2023
1 parent 2944dad commit 5727eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/highlevel/coloring.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function (alg::ApproximateJacobianSparsity)(ad::AutoSparseFiniteDiff, f::F, x; f
cache = FiniteDiff.JacobianCache(x, fx)
J = fill!(similar(fx, length(fx), length(x)), 0)
x_ = similar(x)
ε = eps(eltype(x))^(1 / 3)
ε = eps(eltype(x)) * 100
for _ in 1:ntrials
randn!(rng, x_)
J_cache = FiniteDiff.finite_difference_jacobian(f, x, cache)
Expand All @@ -95,7 +95,7 @@ function (alg::ApproximateJacobianSparsity)(ad::AutoSparseFiniteDiff, f!::F, fx,
J = fill!(similar(fx, length(fx), length(x)), 0)
J_cache = similar(J)
x_ = similar(x)
ε = eps(eltype(x))^(1 / 3)
ε = eps(eltype(x)) * 100
for _ in 1:ntrials
randn!(rng, x_)
FiniteDiff.finite_difference_jacobian!(J_cache, f!, x_, cache)
Expand Down

0 comments on commit 5727eed

Please sign in to comment.