Aggregator<T, U>.Aggregate Method

Definition

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

Overload List

Aggregate(ReadOnlySpan<T>) Aggregates the elements of a vector and returns the result.
Aggregate(Vector<T>) Aggregates the elements of a vector and returns the result.
Aggregate(ReadOnlySpan<T>, Int32) Aggregates the elements of a vector and returns the result.
Aggregate(Vector<T>, IGrouping) Aggregates the elements of a vector according to the specified grouping.
Aggregate(ReadOnlySpan<T>, Int32, Func<T, Boolean>) Aggregates over a span and returns the result.
Aggregate(ReadOnlySpan<T>, Int32, ReadOnlySpan<Boolean>, Int32) Aggregates over a span and returns the result.

Aggregate(ReadOnlySpan<T>)

Aggregates the elements of a vector and returns the result.
C#
public U Aggregate(
	ReadOnlySpan<T> values
)

Parameters

values  ReadOnlySpan<T>
A vector of values.

Return Value

U
The result of the aggregation.

Aggregate(Vector<T>)

Aggregates the elements of a vector and returns the result.
C#
public U Aggregate(
	Vector<T> values
)

Parameters

values  Vector<T>
A vector of values.

Return Value

U
The result of the aggregation.

Aggregate(ReadOnlySpan<T>, Int32)

Aggregates the elements of a vector and returns the result.
C#
public U Aggregate(
	ReadOnlySpan<T> values,
	int stride
)

Parameters

values  ReadOnlySpan<T>
A vector of values.
stride  Int32
 

Return Value

U
The result of the aggregation.

Aggregate(Vector<T>, IGrouping)

Aggregates the elements of a vector according to the specified grouping.
C#
public Vector<U> Aggregate(
	Vector<T> values,
	IGrouping grouping
)

Parameters

values  Vector<T>
The vector to aggregate.
grouping  IGrouping
A grouping.

Return Value

Vector<U>
A vector containing the aggregated values.

Aggregate(ReadOnlySpan<T>, Int32, Func<T, Boolean>)

Aggregates over a span and returns the result.
C#
public U Aggregate(
	ReadOnlySpan<T> values,
	int stride,
	Func<T, bool> predicate
)

Parameters

values  ReadOnlySpan<T>
A span of values.
stride  Int32
 
predicate  Func<T, Boolean>
 

Return Value

U
The result of the aggregation.

Aggregate(ReadOnlySpan<T>, Int32, ReadOnlySpan<Boolean>, Int32)

Aggregates over a span and returns the result.
C#
public U Aggregate(
	ReadOnlySpan<T> values,
	int stride,
	ReadOnlySpan<bool> mask,
	int maskStride
)

Parameters

values  ReadOnlySpan<T>
A span of values.
stride  Int32
 
mask  ReadOnlySpan<Boolean>
A span of booleans.
maskStride  Int32
 

Return Value

U
The result of the aggregation.

See Also