hessreg.m

From Spinach Documentation Wiki
Revision as of 14:05, 5 April 2026 by Kuprov (talk | contribs) (Sync syntax/arguments/outputs with current Spinach source)
Jump to: navigation, search


RFO regularisation for Newton-Raphson Hessian and gradient pairs.

Syntax

[H,data]=hessreg(spin_system,H,g,data)

Arguments

H - Hessian matrix to be regularised

  g    - gradient computed at the same point as H

  data - diagnostic data structure

Outputs

H - regularised Hessian

  data - updated diagnostic data structure with
         data.count.rfo incremented by the number
         of RFO iterations taken
david.goodwin@inano.au.dk
ilya.kuprov@weizmann.ac.il

See also

linesearch.m, fminnewton.m, lbfgs.m


Version 2.2, authors: David Goodwin, Ilya Kuprov

Returns

H - regularised Hessian

  data - updated diagnostic data structure with
         data.count.rfo incremented by the number
         of RFO iterations taken