Skip to content

Commit

Permalink
multiply gn return by 2 for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dngoldberg committed Jul 3, 2021
1 parent f16d344 commit eac0786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runs/run_eigendec.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def ghep_action(x):
"""Hessian action w/o preconditioning"""
ddJ_val = slvr.H_GN.action(cntrl, x)
# reg_op.inv_action(ddJ_val.vector(), xg.vector()) <- gnhep_prior
return function_get_values(ddJ_val)
return 2.0 * function_get_values(ddJ_val)
else:
"""Hessian action w/o preconditioning"""
_, _, ddJ_val = slvr.ddJ.action(cntrl, x)
Expand Down

0 comments on commit eac0786

Please sign in to comment.