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 DenseVector<U> ReduceColumns<U>(
Func<Vector<T>, U> function
)
Public Function ReduceColumns(Of U) (
function As Func(Of Vector(Of T), U)
) As DenseVector(Of U)
public:
generic<typename U>
DenseVector<U>^ ReduceColumns(
Func<Vector<T>^, U>^ function
)
member ReduceColumns :
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
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 columns in the matrix.
Reference