MtxIntDiff.NumericGradHess Method

procedure NumericGradHess(Fun: TRealFunction; const Pars: TVec; const Consts: TVec; const ObjConst: TObjectArray; const Grad: TVec; const Hess: TMtx);

Numerical gradient and Hessian matrix.

#NameDescription
1FunReal function of several variables.
2ParsFunction variables.
3ConstsArray of additional constants which can be used in math formula.
4ObjConstArray of additional constants (pointers) which can be used in math formula.
5GradReturns calculated gradient. If needed, Grad Length and Complex properties are adjusted automatically.
6HessReturns calculated Hessian matrix. If needed, Hess matrix size and complex properties are adjusted automatically.

Result: stored in self (calling object)

Remarks:

Calculates the numerical gradient and Hessian matrix.

See Also: Optimization.Marquardt, TGradHess