Constructs a DoubleVectorParameterizedDelegate instance from the
given delegates.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public DoubleVectorParameterizedDelegate( Func<DoubleVector, DoubleVector, double> function, Action<DoubleVector, DoubleVector, DoubleVector> gradient, int xDimension ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ function As Func(Of DoubleVector, DoubleVector, Double), _ gradient As Action(Of DoubleVector, DoubleVector, DoubleVector), _ xDimension As Integer _ ) |
| Visual C++ |
|---|
public: DoubleVectorParameterizedDelegate( Func<DoubleVector^, DoubleVector^, double>^ function, Action<DoubleVector^, DoubleVector^, DoubleVector^>^ gradient, int xDimension ) |
Parameters
- function
- Type: System..::.Func<(Of <(DoubleVector, DoubleVector, Double>)>)
The constructed instance will use the delegate function to implement the Evaluate method inherited from DoubleParameterizedFunctional
- gradient
- Type: System..::.Action<(Of <(DoubleVector, DoubleVector, DoubleVector>)>)
The constructed instance will use the delegate gradient to implement the GradientWithRespectToParams method inherited from DoubleParameterizedFunctional
- xDimension
- Type: System..::.Int32
The dimension of the domain of the parameterized function.