You are here: Symbol Reference > MtxIntDiff Namespace > Functions > MtxIntDiff.NumericGradHess Function
MtxVec VCL
ContentsIndex
PreviousUpNext
MtxIntDiff.NumericGradHess Function

Numerical gradient and Hessian matrix.

Pascal
procedure NumericGradHess(Fun: TRealFunction; const Pars: TVec; const Consts: TVec; Const ObjConst: Array of TObject; const Grad: TVec; const Hess: TMtx);
Parameters 
Description 
Fun 
Real function of several variables. 
Pars 
Function variables. 
Consts 
Array of additional constants which can be used in math formula. 
ObjConst 
Array of additional constants (pointers) which can be used in math formula. 
Grad 
Returns calculated gradient. If needed, Grad Length and Complex properties are adjusted automatically. 
Hess 
Returns calculated Hessian matrix. If needed, Hess matrix size and complex properties are adjusted automatically. 

Calculates the numerical gradient and Hessian matrix.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!