Matrix<T>.Reduce Rows<U> Method
Applies a function to each row in a matrix and returns the result as a vector.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A Vector<T> whose elements are the result of applying function to each column of the matrix.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public DenseVector<U> ReduceRows<U>(
Func<Vector<T>, U> function
)
Parameters
Type Parameters
- U
Return Value
DenseVector<U>A Vector<T> whose elements are the result of applying function to each column of the matrix.
Remarks
The length of the returned vector equals the number of rows in the matrix.
Exceptions
Argument | function is null. |