FunctionMath.CombineFast Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

CombineFast(Func<Vector<Double>, Vector<Double>>[]) Constructs a delegate that represents a multivariate function returning a matrix in its second argument from an array of multivariate functions returning a vector.
CombineFast(Func<Vector<Double>, Double>[]) Constructs a multivariate function returning a vector in its second argument from an array of multivariate function delegates.
CombineFast(Func<Vector<Double>, Vector<Double>, Vector<Double>>[]) Constructs a delegate that represents a multivariate function returning a matrix in its second argument from an array of multivariate functions returning a vector.

CombineFast(Func<Vector<Double>, Vector<Double>>[])

Constructs a delegate that represents a multivariate function returning a matrix in its second argument from an array of multivariate functions returning a vector.
C#
public static Func<Vector<double>, Matrix<double>, Matrix<double>> CombineFast(
	this Func<Vector<double>, Vector<double>>[] functions
)

Parameters

functions  Func<Vector<Double>, Vector<Double>>[]
An array of multivariate functions returning a vector.

Return Value

Func<Vector<Double>, Matrix<Double>, Matrix<Double>>
A delegate that returns a matrix whose rows correspond to the return values of the elements of functions

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<Vector<Double>, Vector<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).

Remarks

Use this method to combine several multivariate vector functions into one Func<T1, T2, TResult> that returns a matrix whose rows contain each of the function values.

Note that there is a slight performance loss over defining the Func<T1, T2, TResult> directly because of the overhead of invoking multiple delegates instead of one.

CombineFast(Func<Vector<Double>, Double>[])

Constructs a multivariate function returning a vector in its second argument from an array of multivariate function delegates.
C#
public static Func<Vector<double>, Vector<double>, Vector<double>> CombineFast(
	this Func<Vector<double>, double>[] functions
)

Parameters

functions  Func<Vector<Double>, Double>[]
An array of multivariate function delegates.

Return Value

Func<Vector<Double>, Vector<Double>, Vector<Double>>
A multivariate function returning a vector whose return values correspond to the return values of the elements of functions

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<Vector<Double>, 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).

Remarks

Use this method to combine several multivariate functions that return a real number into one multivariate function returning a vector in its second argument 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.

CombineFast(Func<Vector<Double>, Vector<Double>, Vector<Double>>[])

Constructs a delegate that represents a multivariate function returning a matrix in its second argument from an array of multivariate functions returning a vector.
C#
public static Func<Vector<double>, Matrix<double>, Matrix<double>> CombineFast(
	this Func<Vector<double>, Vector<double>, Vector<double>>[] functions
)

Parameters

functions  Func<Vector<Double>, Vector<Double>, Vector<Double>>[]
An array of multivariate functions returning a vector.

Return Value

Func<Vector<Double>, Matrix<Double>, Matrix<Double>>
A delegate that represents a multivariate function returning a matrix in its second argument whose rows correspond to the return values of the elements of functions

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<Vector<Double>, Vector<Double>, Vector<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).

Remarks

Use this method to combine several multivariate vector functions into one function that returns a matrix whose rows contain each of the function values.

Note that there is a slight performance loss over defining the Func<T1, T2, TResult> directly because of the overhead of invoking multiple delegates instead of one.

See Also