Calculates the gradient of this functional.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public override void Gradient(
	DoubleVector x,
	DoubleVector grad
)
Visual Basic (Declaration)
Public Overrides Sub Gradient ( _
	x As DoubleVector, _
	grad As DoubleVector _
)
Visual C++
public:
virtual void Gradient(
	DoubleVector^ x, 
	DoubleVector^ grad
) override

Parameters

x
Type: CenterSpace.NMath.Core..::.DoubleVector
The point at which to evaluate the gradient.
grad
Type: CenterSpace.NMath.Core..::.DoubleVector
The vector into which to place the gradient.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the length of x does not match the domain dimension of this functional

See Also