Applies the specified aggregators to all the rows in the matrix.
Namespace: Extreme.Mathematics.GenericAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public Vector<U> AggregateRows<U>(
Func<Vector<T>, U> aggregator
)
Public Function AggregateRows(Of U) (
aggregator As Func(Of Vector(Of T), U)
) As Vector(Of U)
public:
generic<typename U>
Vector<U>^ AggregateRows(
Func<Vector<T>^, U>^ aggregator
)
member AggregateRows :
aggregator : Func<Vector<'T>, 'U> -> Vector<'U>
Parameters
- aggregator
- Type: SystemFuncVectorT, U
A function that aggregates the elements of a vector
into a value of type U.
Type Parameters
- U
- The type of the result of the aggregation.
Return Value
Type:
VectorUA new matrix that contains the result of the aggregations
with columns indexed by the names of the aggregators and rows indexed
by the matrix's row index.
Numerical Libraries
Supported in: 5.x
Reference