DestructiveAggregator<T, TResult, TIntermediate, TConverter>.TryAggregate Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

TryAggregate(Span<T>, TIntermediate) Attempts to perform the aggregation operation.
TryAggregate(Vector<T>, TResult) Aggregates the elements of a vector and returns the result.
TryAggregate(IEnumerable<T>, Boolean, TResult) Aggregates the elements of a sequence and returns the result.
TryAggregate(ReadOnlySpan<T>, Boolean, TResult) Aggregates the elements of a vector and returns the result.
TryAggregate(Vector<T>, Int32, Int32, TResult) Aggregates the specified range of elements of a vector and returns the result.
TryAggregate(Int32, ReadOnlySpan<T>, Int32, Boolean, TResult) Aggregates the elements of a vector and returns the result.
TryAggregate(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<Boolean>, Int32, Boolean, TResult) Aggregates the elements of a vector and returns the result.

TryAggregate(Span<T>, TIntermediate)

Attempts to perform the aggregation operation.
C#
protected abstract bool TryAggregate(
	Span<T> input,
	out TIntermediate result
)

Parameters

input  Span<T>
A writable span that contains the input. The contents are destroyed during the calculation.
result  TIntermediate
On return, the result of the aggregation.

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

See Also