| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function ApplyFunction( _ ByVal function As ComplexFunction2Cmp2Int, _ ByVal value1 As Complex, _ ByVal value2 As Integer _ ) As CVector | |
| Visual Basic (Usage) | |
|---|---|
Dim instance As CVector Dim function As ComplexFunction2Cmp2Int Dim value1 As Complex Dim value2 As Integer Dim value As CVector value = instance.ApplyFunction(function, value1, value2) | |
| C++/CLI | |
|---|---|
public: CVector^ ApplyFunction( ComplexFunction2Cmp2Int^ function, Complex value1, int value2 ) | |
Parameters
- function
- A delegate to a function that takes as its first and second parameter a complex as its third and forth parameter an integer, and returns a complex
- value1
- A complex value that will be passed to the second parameter of the function represented by the delegate.
- value2
- An integer value that will be passed to the third parameter of the function represented by the delegate.
Return Value
A new CVector object with the same length as this vector, whose elements are the results of applying the specified function to the elements of this vector.The elements of this vector are passed one by one as parameters to the function that is represented by the delegate. The returned values from this function are used to initialize the elements of the newly created CVector object.
The index of the vector element is passed as the forth parameter of the function represented by the delegate.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7