Difference between revisions of "Hessreg.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎See also)
(Sync syntax/arguments/outputs with current Spinach source)
Line 1: Line 1:
−
{{DISPLAYTITLE:hessreg.m}}
+
{{DISPLAYTITLE:hessreg.m}} __NOTOC__
 +
 
 
RFO regularisation for Newton-Raphson Hessian and gradient pairs.
 
RFO regularisation for Newton-Raphson Hessian and gradient pairs.
  
 
==Syntax==
 
==Syntax==
  
−
    [H,data]=hessreg(spin_system,H,g,data)
+
[H,data]=hessreg(spin_system,H,g,data)
  
 
==Arguments==
 
==Arguments==
  
−
  H    - Hessian matrix to be regularised
+
H    - Hessian matrix to be regularised
 
   
 
   
 
   g    - gradient computed at the same point as H
 
   g    - gradient computed at the same point as H
Line 14: Line 15:
 
   data - diagnostic data structure
 
   data - diagnostic data structure
  
−
==Returns==
+
==Outputs==
 +
 
 +
H    - regularised Hessian
  
−
  H    - regularised Hessian
 
−
 
 
   data - updated diagnostic data structure with
 
   data - updated diagnostic data structure with
 
           data.count.rfo incremented by the number
 
           data.count.rfo incremented by the number
 
           of RFO iterations taken
 
           of RFO iterations taken
 +
 +
david.goodwin@inano.au.dk
 +
ilya.kuprov@weizmann.ac.il
  
 
==See also==
 
==See also==
 +
 
[[linesearch.m]], [[fminnewton.m]], [[lbfgs.m]]
 
[[linesearch.m]], [[fminnewton.m]], [[lbfgs.m]]
  
  
 
''Version 2.2, authors: [[David Goodwin]], [[Ilya Kuprov]]''
 
''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

Revision as of 14:05, 5 April 2026


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