Click or drag to resize

NumericalDifferentiationGradientTFunctionParameter Method (FuncDoubleMatrix, TFunctionParameter, Double, DoubleMatrix, TFunctionParameter)

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

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

Parameters

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

Type Parameters

TFunctionParameter
The type of the function parameter.

Return Value

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