Symbolic Math.Combine Fast Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Combine | Constructs a delegate that represents a multivariate function returning a matrix in its second argument from an array of multivariate functions returning a vector. |
Combine | Constructs a multivariate function returning a vector from an array of lambda expressions. |
CombineFast(Expression<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.
public static Func<Vector<double>, Matrix<double>, Matrix<double>> CombineFast(
Expression<Func<Vector<double>, Vector<double>?, Vector<double>>>[] functions
)
Parameters
- functions Expression<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
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.
CombineFast(Expression<Func<Vector<Double>, Double>>[])
Constructs a multivariate function returning a vector from an array of
lambda expressions.
public static Func<Vector<double>, Vector<double>?, Vector<double>> CombineFast(
Expression<Func<Vector<double>, double>>[] functions
)
Parameters
- functions Expression<Func<Vector<Double>, Double>>[]
- An array of lambda expressions that represent a multivariate function.
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
Remarks
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.