From d1f7308be8b04fa83440f8063fb76288df163017 Mon Sep 17 00:00:00 2001 From: tmigot Date: Tue, 30 Aug 2022 15:57:17 +0200 Subject: [PATCH] replace `@.` in `hess_op` --- src/nlp/api.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nlp/api.jl b/src/nlp/api.jl index 0b03ccf0..a7255957 100644 --- a/src/nlp/api.jl +++ b/src/nlp/api.jl @@ -1228,9 +1228,9 @@ function hess_op!( prod! = @closure (res, v, α, β) -> begin hprod!(nlp, x, v, Hv; obj_weight = obj_weight) if β == 0 - @. res = α * Hv + res .= α .* Hv else - @. res = α * Hv + β * res + res .= α .* Hv .+ β .* res end return res end @@ -1259,9 +1259,9 @@ function hess_op!( prod! = @closure (res, v, α, β) -> begin hprod!(nlp, rows, cols, vals, v, Hv) if β == 0 - @. res = α * Hv + res .= α .* Hv else - @. res = α * Hv + β * res + res .= α .* Hv .+ β .* res end return res end @@ -1290,9 +1290,9 @@ function hess_op!( prod! = @closure (res, v, α, β) -> begin hprod!(nlp, x, y, v, Hv; obj_weight = obj_weight) if β == 0 - @. res = α * Hv + res .= α .* Hv else - @. res = α * Hv + β * res + res .= α .* Hv .+ β .* res end return res end