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