Skip to content

Commit

Permalink
no need for fx in out of place
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 19, 2017
1 parent ca50299 commit b72cd2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jacobians.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ function _finite_difference_jacobian!(J::AbstractMatrix{<:Number}, f,
m, n = size(J)
epsilon_elemtype = compute_epsilon_elemtype(epsilon, x)
if fdtype == Val{:forward}
if typeof(fx) == Void
fx = f(x)
end
fx = f(x)
epsilon_factor = compute_epsilon_factor(Val{:forward}, epsilon_elemtype)
shifted_x = copy(x)
@inbounds for i in 1:n
Expand Down

0 comments on commit b72cd2e

Please sign in to comment.