Applies a vector function to each row in a matrix
and returns the result as a matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Matrix<U> MapRows<U>(
Func<Vector<T>, Vector<U>, Vector<U>> function
)
Public Function MapRows(Of U) (
function As Func(Of Vector(Of T), Vector(Of U), Vector(Of U))
) As Matrix(Of U)
public:
generic<typename U>
Matrix<U>^ MapRows(
Func<Vector<T>^, Vector<U>^, Vector<U>^>^ function
)
member MapRows :
function : Func<Vector<'T>, Vector<'U>, Vector<'U>> -> Matrix<'U>
Parameters
- function
- Type: SystemFuncVectorT, VectorU, VectorU
A delegate that represents
a multivariate vector function.
Type Parameters
- U
Return Value
Type:
MatrixUA matrix whose rows are the result of applying
function to each row of the matrix.
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.
Reference