newton_result Derived Type

type, public :: newton_result


Components

Type Visibility Attributes Name Initial
real(kind=pr), public :: cond_est = 0.0_pr

Estimated condition number of J (or J^T J + lambda I when LM active) at the final iteration, via LAPACK dgecon. Dimensionless.

real(kind=pr), public :: dx_norm = 0.0_pr

||dX||_inf of the last computed Newton step at exit. Units: same as x.

real(kind=pr), public, allocatable :: f_history(:)

||F||_inf at iterations 0, 1, …, result%iterations. Allocated only when settings%save_history = .true. Size: (iterations + 1).

real(kind=pr), public :: f_norm = 0.0_pr

||F(x)||_inf at exit. Should be < atol on NEWTON_SUCCESS. Units: same as F.

integer, public :: iterations = 0

Total number of Newton iterations performed (accepted + rejected).

real(kind=pr), public :: lambda = 0.0_pr

Value of the LM regularisation parameter at exit. 0.0 means the final solve was a pure Newton step. Units: [J]^2.

integer, public :: status = 0

Exit status code. Compare with NEWTON_SUCCESS, NEWTON_MAX_ITS, etc. Use newton_status_msg(status) for a human-readable string.