Aggregator<T, U>.Try Aggregate Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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 a sequence 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. |
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. |
Try | Aggregates the elements of a vector and returns the result. |
TryAggregate(ReadOnlySpan<T>, U)
Aggregates the elements of a vector and returns the result.
public virtual bool TryAggregate(
ReadOnlySpan<T> values,
out U result
)
Parameters
- values ReadOnlySpan<T>
- A read-only span of values.
- result U
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(Vector<T>, U)
Aggregates the elements of a vector and returns the result.
public abstract bool TryAggregate(
Vector<T> values,
out U result
)
Parameters
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(IEnumerable<T>, Boolean, U)
Aggregates the elements of a sequence and returns the result.
public virtual bool TryAggregate(
IEnumerable<T> values,
bool checkForMissingValues,
out U result
)
Parameters
- values IEnumerable<T>
- A sequence of values.
- checkForMissingValues Boolean
- Indicates whether missing values should be filtered from the sequence.
- result U
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(ReadOnlySpan<T>, Int32, U)
Aggregates the elements of a vector and returns the result.
public abstract bool TryAggregate(
ReadOnlySpan<T> values,
int stride,
out U result
)
Parameters
- values ReadOnlySpan<T>
- A read-only span of values.
- stride Int32
- result U
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(ReadOnlySpan<T>, Int32, Func<T, Boolean>, U)
Aggregates the elements of a vector and returns the result.
public abstract bool TryAggregate(
ReadOnlySpan<T> values,
int stride,
Func<T, bool> predicate,
out U result
)
Parameters
- values ReadOnlySpan<T>
- A read-only span of values.
- stride Int32
- predicate Func<T, Boolean>
- result U
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(Vector<T>, Array1D<Int32>, Int32, U)
Aggregates the specified elements of a vector and returns the result.
public virtual bool TryAggregate(
Vector<T> values,
Array1D<int> indexes,
int length,
out U result
)
Parameters
- values Vector<T>
- A vector of values.
- indexes Array1D<Int32>
- An integer array containing the indexes of the elements of values that will be aggregated.
- length Int32
- The number of values to aggregate.
- result U
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(Vector<T>, Int32, Int32, U)
Aggregates the specified range of elements of a vector and returns the result.
public virtual bool TryAggregate(
Vector<T> values,
int startIndex,
int endIndex,
out U result
)
Parameters
- values Vector<T>
- A vector of values.
- startIndex Int32
- The zero-based index of the first element in values that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values that should be aggregated.
- result U
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(ReadOnlySpan<T>, Int32, ReadOnlySpan<Boolean>, Int32, U)
Aggregates the elements of a vector and returns the result.
public abstract bool TryAggregate(
ReadOnlySpan<T> values,
int stride,
ReadOnlySpan<bool> mask,
int maskStride,
out U result
)
Parameters
- values ReadOnlySpan<T>
- A read-only span of values.
- stride Int32
- mask ReadOnlySpan<Boolean>
- maskStride Int32
- result U
- The result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.