Matrix<T>.Reduce Columns Into<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 Vector<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 Vector<U> ReduceColumnsInto<U>(
Func<Vector<T>, U> function,
Vector<U> result
)
Parameters
- function Func<Vector<T>, U>
- A delegate that represents a multivariate function.
- result Vector<U>
- The vector that is to hold the result.
Type Parameters
- U
Return Value
Vector<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. |