Returns a new matrix with the same size as this matrix, whose values are the result of applying the given binary function to each element of this matrix. The first parameter to the binary function is the matrix element; the second parameter is the passed DoubleComplex value.

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

Syntax

C#
public DoubleComplexMatrix Apply(
	NMathFunctions..::.DoubleComplexBinaryFunction function,
	DoubleComplex x
)
Visual Basic (Declaration)
Public Function Apply ( _
	function As NMathFunctions..::.DoubleComplexBinaryFunction, _
	x As DoubleComplex _
) As DoubleComplexMatrix
Visual C++
public:
DoubleComplexMatrix^ Apply(
	NMathFunctions..::.DoubleComplexBinaryFunction^ function, 
	DoubleComplex x
)

Parameters

function
Type: CenterSpace.NMath.Core..::.NMathFunctions..::.DoubleComplexBinaryFunction
A delegate object representing a function that takes two DoubleComplex parameters and returns a DoubleComplex.
x
Type: CenterSpace.NMath.Core..::.DoubleComplex
The second parameter to the function.

Return Value

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

See Also