Click or drag to resize

FloatComplexVectorTransform(FuncFloatComplex) Method

Modifies the elements of this vector by applying the given no-argument function to each element.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public FloatComplexVector Transform(
	Func<FloatComplex> function
)

Parameters

function  FuncFloatComplex
A delegate object representing a function that takes no parameters and returns a FloatComplex.

Return Value

FloatComplexVector
A reference to self.
Remarks
For example:
C#
RandGenMTwist rand = new RandGenMTwist();
FloatComplexVector randVec = new FloatComplexVector( 20, rand );
...
// Get new numbers
randVec.Transform( new NMathFunctions.FloatComplexFunction( rand.NextFloatComplex );
...
See Also