Click or drag to resize

UtilCalcGradient Method (ScalarFunction, Double, Double)

Calculates numerically the gradient

Use if fx is already calculated.

Namespace:  DHIMath.Numerics
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public static double[] CalcGradient(
	ScalarFunction function,
	double[] x,
	double reldx
)

Parameters

function
Type: DHIMath.NumericsScalarFunction
Function to calculate the Jacobian of
x
Type: SystemDouble
Point at which to calculate Jacobian
reldx
Type: SystemDouble
Relative dx used in numerical gradient calculation

Return Value

Type: Double
See Also