Matrix<T>.Aggregate Columns<U>(Func<Vector<T>, U>) Method
Applies the specified aggregators to all the columns in the matrix.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A new matrix that contains the result of the aggregations with rows indexed by the names of the aggregators and columns indexed by the matrix's column index.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Vector<U> AggregateColumns<U>(
Func<Vector<T>, U> aggregator
)
Parameters
- aggregator Func<Vector<T>, 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
Vector<U>A new matrix that contains the result of the aggregations with rows indexed by the names of the aggregators and columns indexed by the matrix's column index.