Applies a function to each row 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 DenseVector<U> ReduceRows<U>(
Func<Vector<T>, U> function
)
Public Function ReduceRows(Of U) (
function As Func(Of Vector(Of T), U)
) As DenseVector(Of U)
public:
generic<typename U>
DenseVector<U>^ ReduceRows(
Func<Vector<T>^, U>^ function
)
member ReduceRows :
function : Func<Vector<'T>, 'U> -> DenseVector<'U>
Parameters
- function
- Type: SystemFuncVectorT, U
A delegate that represents a multivariate function.
Type Parameters
- U
Return Value
Type:
DenseVectorUA
VectorT 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