NewtonStepFinder
supports_hessian: bool
__init__(self, func, jacobian=None, hessian=None, *, check_generator=True, logger=None, **generator_opts):
LLM Docstring
Initialize a Newton step finder, building a direct-Hessian generator from the supplied Jacobian/Hessian unless one is already provided.
func:Callablethe objective function
jacobian:Callable | Nonethe gradient function (or a ready generator)
hessian:Callable | Nonethe Hessian function
check_generator:boolbuild a generator when needed
logger:object | Noneoptional logger
generator_opts:Anyextra options for the generator
__call__(self, guess, mask, return_vals=False, projector=None):
LLM Docstring
Produce a Newton step for the active members.
guess:np.ndarraycurrent parameters
mask:np.ndarray | tupleactive-member indices (or chain-minimizer tuple)
return_vals:boolunsupported
projector:np.ndarray | Noneoptional projector applied to the step
:returns:tuple(step, gradient)