Click or drag to resize

NumericalDifferentiationGradient Method (FuncDoubleMatrix, Double, DoubleMatrix)

Returns the gradient of the specified nonparametric function at the given argument.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public static DoubleMatrix Gradient(
	Func<DoubleMatrix, double> function,
	DoubleMatrix argument
)

Parameters

function
Type: SystemFuncDoubleMatrix, Double
The function to be differentiated.
argument
Type: Novacta.AnalyticsDoubleMatrix
The argument at which the gradient must be evaluated.

Return Value

Type: DoubleMatrix
The gradient of the specified function evaluated at the given argument.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunction is null.
-or-
argument is null.
See Also