Skip to content

Commit

Permalink
objective correction
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rs committed Jul 16, 2023
1 parent 72eb6b8 commit 95c89a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raphson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function objective_linesearch!(cache::NewtonRaphsonCache) ## returns the objecti
@unpack f = cache

function fo(x)
return dot(value_f(cache, x), value_f(cache, x))
return dot(value_f(cache, x), value_f(cache, x)) / 2
end

function g!(grad, x)
Expand Down

0 comments on commit 95c89a4

Please sign in to comment.