Skip to content

Commit

Permalink
Fix initial evaluation. (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkofod authored Jan 24, 2018
1 parent 0578a65 commit d576133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/solvers/newton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function newton_{T}(df::OnceDifferentiable,
xold = similar(x)
p = Array{T}(n)
g = Array{T}(n)
value_jacobian!(df, x)
value_jacobian!!(df, x)

check_isfinite(value(df))

Expand Down
2 changes: 1 addition & 1 deletion src/solvers/trust_region.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function trust_region_{T}(df::OnceDifferentiable,
p = similar(x) # Step
d = similar(x) # Scaling vector

value_jacobian!(df, x)
value_jacobian!!(df, x)
r .= value(df)
check_isfinite(r)

Expand Down

0 comments on commit d576133

Please sign in to comment.