From cef31b5060158ce678c70fd6abf5a84fa40fc51b Mon Sep 17 00:00:00 2001 From: Patrick Kofod Mogensen Date: Tue, 2 Nov 2021 16:13:13 +0100 Subject: [PATCH] Slight type instability. (#144) --- src/objective_types/incomplete.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objective_types/incomplete.jl b/src/objective_types/incomplete.jl index 5475cfb..f27facb 100644 --- a/src/objective_types/incomplete.jl +++ b/src/objective_types/incomplete.jl @@ -137,6 +137,7 @@ function value_gradient_hessian!!(obj, x) else obj.F = obj.fdfh(obj.DF, obj.H, x) end + obj.F, obj.DF, obj.H end function gradient_hessian!!(obj, x) @@ -150,6 +151,7 @@ function gradient_hessian!!(obj, x) obj.x_h .= x obj.dfh(obj.DF, obj.H, x) end + obj.DF, obj.H end function TwiceDifferentiableHV(t::InPlaceFG_HV, x::AbstractVector)