Matrix<T>.Map Columns<U> Method
Applies a vector function to each column in a matrix
and returns the result as a matrix.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A matrix whose columns are the result of applying function to each column of the matrix.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Matrix<T> MapColumns<U>(
Func<Vector<T>, Vector<U>, Vector<U>> function
)
Parameters
- function Func<Vector<T>, Vector<U>, Vector<U>>
- A delegate that represents a multivariate vector function.
Type Parameters
- U
Return Value
Matrix<T>A matrix whose columns are the result of applying function to each column of the matrix.
Remarks
The length of the result of applying function to the first row of the matrix is used as the number of rows in the result.
Exceptions
Argument | function is null. |