Skip to content
Snippets Groups Projects

Draft: compatible for python version < 3.9

Closed Vincent Eberle requested to merge nifty2jax_ve into nifty2jax
1 unresolved thread
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -152,7 +152,8 @@ def _newton_cg(
"name": cg_name,
"time_threshold": time_threshold
}
cg_res = cg(Partial(hessp, pos), g, **(default_kwargs | cg_kwargs))
new_kwargs= {**default_kwargs, **cg_kwargs}
cg_res = cg(Partial(hessp, pos), g, **new_kwargs)
nat_g, info = cg_res.x, cg_res.info
nhev += cg_res.nfev
if info is not None and info < 0:
Loading