MtxIntDiff.NumericGradHess Method

void NumericGradHess(TRealFunction Fun, TVec Pars, TVec Consts, Object[] ObjConst, TVec Grad, TMtx Hess)

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