From 7673c85932b170b8a278595a23fe878c54439d7a Mon Sep 17 00:00:00 2001 From: Yash Raj Singh Date: Sun, 17 Sep 2023 02:43:17 +0200 Subject: [PATCH] minor sign fix --- src/raphson.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raphson.jl b/src/raphson.jl index 81a05e34b..d8b52d46f 100644 --- a/src/raphson.jl +++ b/src/raphson.jl @@ -208,11 +208,11 @@ function perform_linesearch!(cache::NewtonRaphsonCache) function dϕ(α) g!(g_o, u .- α .* du1) - return dot(g_o, du1) + return dot(g_o, -du1) end function ϕdϕ(α) - return (fg!(g_o, u .- α .* du1), dot(g_o, du1)) + return (fg!(g_o, u .- α .* du1), dot(g_o, -du1)) end cache.f_o = fo(u) @unpack f_o = cache