Click or drag to resize

DoubleFunctionalGradient(DoubleVector, DoubleVector) Method

Calculates the gradient of this functional using a central difference methods. Deriving classes may override this method.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public virtual void Gradient(
	DoubleVector x,
	DoubleVector grad
)

Parameters

x  DoubleVector
The point at which to evaluate the gradient.
grad  DoubleVector
The vector into which to place the gradient.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if the gradient or x vector does not have length equal to the dimension of the domain of the functional.
See Also