Returns a new vector with the same size as this vector, whose values are the result of applying the given unary function to each element of this vector.

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

Syntax

C#
public DoubleVector Apply(
	Func<DoubleComplex, double> function
)
Visual Basic (Declaration)
Public Function Apply ( _
	function As Func(Of DoubleComplex, Double) _
) As DoubleVector
Visual C++
public:
DoubleVector^ Apply(
	Func<DoubleComplex, double>^ function
)

Parameters

function
Type: System..::.Func<(Of <(DoubleComplex, Double>)>)
A function that takes a single DoubleComplex parameter and returns a double.

Return Value

A new vector with the same size as self and with u[i]=function(this[i]).

See Also