Skip to content

Commit

Permalink
Use mul! in compute slope function
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed May 12, 2023
1 parent 5419b18 commit 3719f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auxiliary/bounds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function compute_Hs_slope_qs!(
s::AbstractVector{T},
g::AbstractVector{T},
) where {T <: Real}
Hs .= H * s
mul!(Hs, H, s)
slope = dot(g, s)
qs = dot(s, Hs) / 2 + slope
return slope, qs
Expand Down

0 comments on commit 3719f3e

Please sign in to comment.