Click or drag to resize

FloatMatrixTransform(FuncSingle) 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 FloatMatrix Transform(
	Func<float> function
)

Parameters

function  FuncSingle
A delegate object representing a function that takes no parameters and returns a float.

Return Value

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