Skip to content

Commit b72cd2e

Browse files
no need for fx in out of place
1 parent ca50299 commit b72cd2e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/jacobians.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ function _finite_difference_jacobian!(J::AbstractMatrix{<:Number}, f,
194194
m, n = size(J)
195195
epsilon_elemtype = compute_epsilon_elemtype(epsilon, x)
196196
if fdtype == Val{:forward}
197-
if typeof(fx) == Void
198-
fx = f(x)
199-
end
197+
fx = f(x)
200198
epsilon_factor = compute_epsilon_factor(Val{:forward}, epsilon_elemtype)
201199
shifted_x = copy(x)
202200
@inbounds for i in 1:n

0 commit comments

Comments
 (0)