Skip to content

Commit

Permalink
Follow up to commit f596dc6
Browse files Browse the repository at this point in the history
  • Loading branch information
unalmis committed Sep 2, 2024
1 parent 2267da4 commit d382df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desc/optimize/bound_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def build_quadratic_1d_hess(H, g, s, diag=None, s0=None):
c : float
Free term. Returned only if `s0` is provided.
"""
a = H.dot(s)
a = H.dot(s).dot(s)
if diag is not None:
a += jnp.dot(s * diag, s)
a *= 0.5
Expand Down

0 comments on commit d382df3

Please sign in to comment.