Matrix<T>.MapRowsInPlace Method

Applies a function to each column in a matrix and returns the result as a vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public Matrix<T> MapRowsInPlace(
	Action<Vector<T>> function
)

Parameters

function  Action<Vector<T>>
A delegate that represents a multivariate function.

Return Value

Matrix<T>
A DenseVector<T> whose elements are the result of applying function to each column of the matrix.

Remarks

The length of the returned vector equals the number of rows in the matrix.

Exceptions

ArgumentNullException

function is null.

See Also