Constructs a multivariate function returning a vector from an array of
multivariate function delegates.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Func<Vector<double>, Vector<double>> Combine(
this Func<Vector<double>, double>[] functions
)
<ExtensionAttribute>
Public Shared Function Combine (
functions As Func(Of Vector(Of Double), Double)()
) As Func(Of Vector(Of Double), Vector(Of Double))
public:
[ExtensionAttribute]
static Func<Vector<double>^, Vector<double>^>^ Combine(
array<Func<Vector<double>^, double>^>^ functions
)
[<ExtensionAttribute>]
static member Combine :
functions : Func<Vector<float>, float>[] -> Func<Vector<float>, Vector<float>>
Parameters
- functions
- Type: SystemFuncVectorDouble, Double
An array of
multivariate function delegates.
Return Value
Type:
FuncVectorDouble,
VectorDoubleA multivariate function returning a vector whose return values correspond to the
return values of the elements of
functionsUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
Use this method to combine several multivariate functions that return a real number
into one multivariate function returning a vector that returns a vector containing each of the function values.
Note that there is a
slight performance loss over defining the multivariate function returning a vector
directly because of the overhead of invoking multiple delegates
instead of one.
Reference