BinaryAccumulatingAggregator<T1, T2, TResult, TIntermediate, TConverter1, TConverter2, TAccumulator>.TryAggregate Method

Definition

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

Overload List

TryAggregate(Vector<T1>, Vector<T2>, TResult) Aggregates the elements of a vector and returns the result.
TryAggregate(Vector<T1>, Vector<T2>, Boolean) Aggregates the elements of a vector and returns the result.
TryAggregate(IEnumerable<T1>, IEnumerable<T2>, Boolean, TResult) Aggregates the elements of two sequences pairwise and returns the result.
TryAggregate(ReadOnlySpan<T1>, ReadOnlySpan<T2>, Boolean, TResult) Aggregates the elements of two spans pairwise and returns the result.
TryAggregate(Int32, ReadOnlySpanSlice<T1>, ReadOnlySpanSlice<T2>, Boolean, TResult) Aggregates the elements of two span slices pairwise and returns the result.
TryAggregate(Vector<T1>, Vector<T2>, Array1D<Int32>, Int32, TResult) Aggregates the specified elements of a vector and returns the result.
TryAggregate(Vector<T1>, Vector<T2>, Int32, Int32, TResult) 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.
C#
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

Boolean
true 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.
C#
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

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

See Also