Aggregates the specified elements of a vector and returns the result.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public bool TryAggregate<U>(
Vector<U> values1,
Vector<U> values2,
Array1D<int> indexes,
int length,
out T result
)
Public Function TryAggregate(Of U) (
values1 As Vector(Of U),
values2 As Vector(Of U),
indexes As Array1D(Of Integer),
length As Integer,
<OutAttribute> ByRef result As T
) As Boolean
public:
generic<typename U>
bool TryAggregate(
Vector<U>^ values1,
Vector<U>^ values2,
Array1D<int> indexes,
int length,
[OutAttribute] T% result
)
member TryAggregate :
values1 : Vector<'U> *
values2 : Vector<'U> *
indexes : Array1D<int> *
length : int *
result : 'T byref -> bool
Parameters
- values1
- Type: Extreme.MathematicsVectorU
A vector of values. - values2
- Type: Extreme.MathematicsVectorU
A vector of values. - indexes
- Type: Extreme.CollectionsArray1DInt32
An integer array containing the indexes
of the elements of values1 and values2 that will be aggregated. - length
- Type: SystemInt32
The number of values to aggregate. - result
- Type: T
The result of the aggregation.
Type Parameters
- U
Return Value
Type:
Boolean if the aggregation produced a result;
otherwise
.
Reference