| FloatVectorTransform(FuncSingle) Method |
Modifies the elements of this vector by applying the given no-argument function to
each element.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public FloatVector Transform(
Func<float> function
)
Public Function Transform (
function As Func(Of Single)
) As FloatVector
public:
FloatVector^ Transform(
Func<float>^ function
)
member Transform :
function : Func<float32> -> FloatVector
Parameters
- function FuncSingle
- A delegate object representing a function that
takes no parameters and returns a float.
Return Value
FloatVectorA reference to self.
Remarks For example:
RandGenMTwist rand = new RandGenMTwist();
FloatVector randVec = new FloatVector( 20, rand );
...
randVec.Transform( new NMathFunctions.FloatFunction( rand.NextFloat );
...
See Also