Binary Accumulating Aggregator<T1, T2, TResult, TIntermediate, TConverter1, TConverter2, TAccumulator>.Try Aggregate Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the elements of two sequences pairwise and returns the result. |
Try | Aggregates the elements of two spans pairwise and returns the result. |
Try | Aggregates the elements of two span slices pairwise and returns the result. |
Try | Aggregates the specified elements of a vector and returns the result. |
Try | Aggregates the specified range of elements of a vector and returns the result. |
TryAggregate(Vector<T1>, Vector<T2>, TResult)
Aggregates the elements of a vector and returns the result.
public override bool TryAggregate(
Vector<T1> values1,
Vector<T2> values2,
out TResult result
)
Parameters
- values1 Vector<T1>
- A vector of values.
- values2 Vector<T2>
- A vector of values.
- result TResult
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(ReadOnlySpan<T1>, ReadOnlySpan<T2>, Boolean, TResult)
Aggregates the elements of two spans pairwise and returns the result.
public override bool TryAggregate(
ReadOnlySpan<T1> values1,
ReadOnlySpan<T2> values2,
bool skipMissingValues,
out TResult result
)
Parameters
- values1 ReadOnlySpan<T1>
- A span of values.
- values2 ReadOnlySpan<T2>
- A span of values.
- skipMissingValues Boolean
- Specifies whether missing values should be excluded from the aggregation.
- result TResult
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.