Returns a new vector containing an element for each column or row in this matrix. The elements are the results of applying a function that takes a vector and returns a single-precision number.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public DoubleVector Apply(
	NMathFunctions..::.DoubleVectorDoubleFunction function
)
Visual Basic (Declaration)
Public Function Apply ( _
	function As NMathFunctions..::.DoubleVectorDoubleFunction _
) As DoubleVector
Visual C++
public:
DoubleVector^ Apply(
	NMathFunctions..::.DoubleVectorDoubleFunction^ function
)

Parameters

function
Type: CenterSpace.NMath.Core..::.NMathFunctions..::.DoubleVectorDoubleFunction
A delegate object representing a function that takes a DoubleVector parameter and returns a float.

Return Value

A vector v with the same length as the number of columns and rows in this matrix, where v[i]=function( this.Col(i) ).

See Also