Applies a vector function to each column 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<T> MapColumns<U>(
Func<Vector<T>, Vector<U>, Vector<U>> function
)
Public Function MapColumns(Of U) (
function As Func(Of Vector(Of T), Vector(Of U), Vector(Of U))
) As Matrix(Of T)
public:
generic<typename U>
Matrix<T>^ MapColumns(
Func<Vector<T>^, Vector<U>^, Vector<U>^>^ function
)
member MapColumns :
function : Func<Vector<'T>, Vector<'U>, Vector<'U>> -> Matrix<'T>
Parameters
- function
- Type: SystemFuncVectorT, VectorU, VectorU
A delegate that represents
a multivariate vector function.
Type Parameters
- U
Return Value
Type:
MatrixTA matrix whose columns are the result of applying
function to each column of the matrix.
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.
Reference