Modifies the contents of this vector by applying the given binary function to each element. The first parameter to the binary function is the vector element; the second parameter is the passed double-precision value.

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

Syntax

C#
[ObsoleteAttribute("Use Transform( Func<double, double, double> function, double x )")]
public DoubleVector Transform(
	NMathFunctions..::..DoubleBinaryFunction function,
	double x
)
Visual Basic
<ObsoleteAttribute("Use Transform( Func<double, double, double> function, double x )")> _
Public Function Transform ( _
	function As NMathFunctions..::..DoubleBinaryFunction, _
	x As Double _
) As DoubleVector
Visual C++
public:
[ObsoleteAttribute(L"Use Transform( Func<double, double, double> function, double x )")]
DoubleVector^ Transform(
	NMathFunctions..::..DoubleBinaryFunction^ function, 
	double x
)

Parameters

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

Return Value

A reference to self.

Remarks

Upon exit, this[i] = function(this[i],x).

See Also