Skip to content

Commit

Permalink
Fix scaling bug in CG (#45)
Browse files Browse the repository at this point in the history
* Fixes scaling bug in CG from #38

Co-authored-by: Brendt Wohlberg <bwohlberg@users.noreply.github.com>
  • Loading branch information
tbalke and bwohlberg committed Oct 18, 2021
1 parent b8cba12 commit c844535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scico/admm.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def internal_init(self, admm):
)
if admm.f is not None:
# hessian = A.T @ W @ A; W may be identity
lhs_op = lhs_op + 2.0 * admm.f.scale * admm.f.hessian
lhs_op = lhs_op + admm.f.hessian

lhs_op.jit()
self.lhs_op = lhs_op
Expand Down

0 comments on commit c844535

Please sign in to comment.