Applies an accumulator function over the elements of a vector.
Namespace:
Extreme.DataAnalysis.Linq
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static T Aggregate<T>(
this Vector<T> vector,
Func<T, T, T> func
)
<ExtensionAttribute>
Public Shared Function Aggregate(Of T) (
vector As Vector(Of T),
func As Func(Of T, T, T)
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T Aggregate(
Vector<T>^ vector,
Func<T, T, T>^ func
)
[<ExtensionAttribute>]
static member Aggregate :
vector : Vector<'T> *
func : Func<'T, 'T, 'T> -> 'T
Parameters
- vector
- Type: Extreme.MathematicsVectorT
A vector to aggregate over. - func
- Type: SystemFuncT, T, T
An accumulator function to apply to each element.
Type Parameters
- T
- The type of the elements of the vector.
Return Value
Type:
TThe final accumulator value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorT. 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).
Reference