Click or drag to resize

DoubleMatrixTransform(FuncDouble) 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 DoubleMatrix Transform(
	Func<double> function
)

Parameters

function  FuncDouble
A delegate object representing a function that takes no parameters and returns a double.

Return Value

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