LinqExtensions.Aggregate<T>(Vector<T>, Func<T, T, T>) Method

Applies an accumulator function over the elements of a vector.

Definition

Namespace: Extreme.DataAnalysis.Linq
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static T Aggregate<T>(
	this Vector<T> vector,
	Func<T, T, T> func
)

Parameters

vector  Vector<T>
A vector to aggregate over.
func  Func<T, T, T>
An accumulator function to apply to each element.

Type Parameters

T
The type of the elements of the vector.

Return Value

T
The final accumulator value.

Usage Note

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

See Also