Returns a delegate that numerically evaluates the gradient of a multivariate function.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Func<Vector<double>, Vector<double>, Vector<double>> GetNumericalGradient(
this Func<Vector<double>, double> function
)
<ExtensionAttribute>
Public Shared Function GetNumericalGradient (
function As Func(Of Vector(Of Double), Double)
) As Func(Of Vector(Of Double), Vector(Of Double), Vector(Of Double))
public:
[ExtensionAttribute]
static Func<Vector<double>^, Vector<double>^, Vector<double>^>^ GetNumericalGradient(
Func<Vector<double>^, double>^ function
)
[<ExtensionAttribute>]
static member GetNumericalGradient :
function : Func<Vector<float>, float> -> Func<Vector<float>, Vector<float>, Vector<float>>
Parameters
- function
- Type: SystemFuncVectorDouble, Double
A delegate that represents a multivariate function.
Return Value
Type:
FuncVectorDouble,
VectorDouble,
VectorDoubleA delegate that represents a multivariate function returning a vector in its second argument.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FuncVectorDouble,
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Simple forward differences are used to compute the numerical derivatives.
Reference