Returns a new matrix with the same size as this matrix, whose values are the result of applying the given unary function to each element of this matrix.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public FloatMatrix Apply(
	NMathFunctions..::.FloatComplexUnaryFunction2 function
)
Visual Basic (Declaration)
Public Function Apply ( _
	function As NMathFunctions..::.FloatComplexUnaryFunction2 _
) As FloatMatrix
Visual C++
public:
FloatMatrix^ Apply(
	NMathFunctions..::.FloatComplexUnaryFunction2^ function
)

Parameters

function
Type: CenterSpace.NMath.Core..::.NMathFunctions..::.FloatComplexUnaryFunction2
A delegate object representing a function that takes a single FloatComplex parameter and returns a float.

Return Value

A new matrix B with the same size as self and with B[i,j]=function(this[i,j]).

See Also