Matrix<T>.ReduceRows<U> Method

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

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public DenseVector<U> ReduceRows<U>(
	Func<Vector<T>, U> function
)

Parameters

function  Func<Vector<T>, U>
A delegate that represents a multivariate function.

Type Parameters

U

Return Value

DenseVector<U>
A Vector<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

ArgumentNullExceptionfunction is null.

See Also