Click or drag to resize

DoubleVectorTransform(FuncDouble, Double) Method

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: 7.4
Syntax
public DoubleVector Transform(
	Func<double, double> function
)

Parameters

function  FuncDouble, Double
A delegate object representing a function that takes a single double parameter and returns a double.

Return Value

DoubleVector
A reference to self.
Remarks
Upon exit, this[i] = function(this[i]).
See Also