Applies a function to each column in a matrix and returns the result as a vector.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Matrix<T> MapRowsInPlace(
Action<Vector<T>> function
)
Public Function MapRowsInPlace (
function As Action(Of Vector(Of T))
) As Matrix(Of T)
public:
Matrix<T>^ MapRowsInPlace(
Action<Vector<T>^>^ function
)
member MapRowsInPlace :
function : Action<Vector<'T>> -> Matrix<'T>
Parameters
- function
- Type: SystemActionVectorT
A delegate that represents a multivariate function.
Return Value
Type:
MatrixTA
DenseVectorT whose elements are the result of applying
function to each column of the matrix.
The length of the returned vector equals the number of rows in the matrix.
Reference