Destructive Aggregator<T, TResult, TIntermediate, TConverter>.Try Aggregate Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Try | Attempts to perform the aggregation operation. |
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the elements of a sequence and returns the result. |
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the specified range of elements of a vector and returns the result. |
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the elements of a vector and returns the result. |
TryAggregate(Span<T>, TIntermediate)
Attempts to perform the aggregation operation.
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
Booleantrue if the aggregation produced a result; otherwise false.