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 Vector<U> ReduceColumnsInto<U>(
Func<Vector<T>, U> function,
Vector<U> result
)
Public Function ReduceColumnsInto(Of U) (
function As Func(Of Vector(Of T), U),
result As Vector(Of U)
) As Vector(Of U)
public:
generic<typename U>
Vector<U>^ ReduceColumnsInto(
Func<Vector<T>^, U>^ function,
Vector<U>^ result
)
member ReduceColumnsInto :
function : Func<Vector<'T>, 'U> *
result : Vector<'U> -> Vector<'U>
Parameters
- function
- Type: SystemFuncVectorT, U
A delegate that represents a multivariate function. - result
- Type: Extreme.MathematicsVectorU
The vector that is to hold the result.
Type Parameters
- U
Return Value
Type:
VectorUA
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