Click or drag to resize

FloatComplexMatrixTransform(FuncFloatComplex) Method

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

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

Parameters

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

Return Value

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