Skip to content

Commit c05b2f8

Browse files
authored
save allocations in hess_coord! (#107)
1 parent 3f59fd8 commit c05b2f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qpmodel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ function NLPModels.hess_coord!(
324324
obj_weight::Real = one(eltype(x)),
325325
) where {T, S, M1 <: SparseMatrixCOO}
326326
NLPModels.increment!(qp, :neval_hess)
327-
vals .= obj_weight * qp.data.H.vals
327+
vals .= obj_weight .* qp.data.H.vals
328328
return vals
329329
end
330330

0 commit comments

Comments
 (0)