Modifies the elements of this vector by applying the given unary function to each element.

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

Syntax

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

Parameters

function
Type: CenterSpace.NMath.Core..::.NMathFunctions..::.DoubleUnaryFunction
A delegate object representing a function that takes a single double parameter and returns a double.

Return Value

A reference to self.

Remarks

Upon exit, this[i] = function(this[i]).

See Also