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> MapRowsInto<U>(
Func<Vector<T>, Vector<U>, Vector<U>> function,
Matrix<U> result
)
Public Function MapRowsInto(Of U) (
function As Func(Of Vector(Of T), Vector(Of U), Vector(Of U)),
result As Matrix(Of U)
) As Matrix(Of U)
public:
generic<typename U>
Matrix<U>^ MapRowsInto(
Func<Vector<T>^, Vector<U>^, Vector<U>^>^ function,
Matrix<U>^ result
)
member MapRowsInto :
function : Func<Vector<'T>, Vector<'U>, Vector<'U>> *
result : Matrix<'U> -> Matrix<'U>
Parameters
- function
- Type: SystemFuncVectorT, VectorU, VectorU
A delegate that represents
a multivariate vector function. - result
- Type: Extreme.MathematicsMatrixU
The matrix that is to hold the result.
Type Parameters
- U
Return Value
Type:
MatrixUA matrix whose rows are the result of applying
function to each row of the matrix.
If result is ,
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