Skip to content

Commit

Permalink
minor sign fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rs committed Sep 17, 2023
1 parent ff524b0 commit 7673c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raphson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ function perform_linesearch!(cache::NewtonRaphsonCache)

function (α)
g!(g_o, u .- α .* du1)
return dot(g_o, du1)
return dot(g_o, -du1)

Check warning on line 211 in src/raphson.jl

View check run for this annotation

Codecov / codecov/patch

src/raphson.jl#L210-L211

Added lines #L210 - L211 were not covered by tests
end

function ϕdϕ(α)
return (fg!(g_o, u .- α .* du1), dot(g_o, du1))
return (fg!(g_o, u .- α .* du1), dot(g_o, -du1))

Check warning on line 215 in src/raphson.jl

View check run for this annotation

Codecov / codecov/patch

src/raphson.jl#L215

Added line #L215 was not covered by tests
end
cache.f_o = fo(u)
@unpack f_o = cache
Expand Down

0 comments on commit 7673c85

Please sign in to comment.