Public interface for the user-supplied function to compute the gradient at point x.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
void Gradient(
	double[] x,
	double[] g
)
Visual Basic (Declaration)
Sub Gradient ( _
	x As Double(), _
	g As Double() _
)
Visual C++
void Gradient(
	array<double>^ x, 
	array<double>^ g
)

Parameters

x
Type: array< System..::.Double >[]()[]
A double array, the point at which the gradient is evaluated. x.length equals the number of variables.
g
Type: array< System..::.Double >[]()[]
A double array which, on return, contains the values of the gradient of the objective function.

See Also