Matrix<T>.Reduce Columns<U> Method
Applies a function to each column in a matrix and returns the result as a vector.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A DenseVector<T> whose elements are the result of applying function to each column of the matrix.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public DenseVector<U> ReduceColumns<U>(
Func<Vector<T>, U> function
)
Parameters
Type Parameters
- U
Return Value
DenseVector<U>A DenseVector<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 columns in the matrix.
Exceptions
| Argument | function is null. |