| DoubleMatrixTransform(FuncDouble) Method |
Modifies the elements of this matrix by applying the given no-argument function to
each element.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleMatrix Transform(
Func<double> function
)
Public Function Transform (
function As Func(Of Double)
) As DoubleMatrix
public:
DoubleMatrix^ Transform(
Func<double>^ function
)
member Transform :
function : Func<float> -> DoubleMatrix
Parameters
- function FuncDouble
- A delegate object representing a function that
takes no parameters and returns a double.
Return Value
DoubleMatrixA reference to self.
Remarks For example:
RandGenMTwist rand = new RandGenMTwist();
DoubleMatrix randMatrix = new DoubleMatrix( 20, 30, rand );
...
randMatrix.Transform( new NMathFunctions.DoubleFunction( rand.NextDouble );
...
See Also