Applies a function to each column in a matrix and returns the result as a vector.
Namespace: Extreme.Mathematics.GenericAssembly: Extreme.Generic.Net40 (in Extreme.Generic.Net40.dll) Version: 5.1.14261.0 (5.1.14261.0)
public DenseVector<T> ApplyToColumns(
Func<Vector<T>, T> function
)
Public Function ApplyToColumns (
function As Func(Of Vector(Of T), T)
) As DenseVector(Of T)
public:
DenseVector<T>^ ApplyToColumns(
Func<Vector<T>^, T>^ function
)
member ApplyToColumns :
function : Func<Vector<'T>, 'T> -> DenseVector<'T>
Parameters
- function
- Type: SystemFuncVectorT, T
A [!:MultivariateRealFunction] delegate.
Return Value
Type:
DenseVectorTA
DenseMatrixT whose components 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.
Numerical Libraries
Supported in: 4.x
Reference