Matrix<T>.Map Rows<U> Method
Applies a vector function to each row in a matrix
and returns the result as a matrix.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A matrix whose rows are the result of applying function to each row of the matrix.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public Matrix<U> MapRows<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<U>A matrix whose rows are the result of applying function to each row of the matrix.
Remarks
The length of the result of applying function to the first column of the matrix is used as the number of columns in the result.
Exceptions
Argument | function is null. |