.NET Matrix Library
ApplyFunction(ComplexFunction2Cmp,Complex) Method
See Also  Send Feedback



function
A delegate to a function that takes as its first and second parameter a complex and returns a complex
value
The complex value that will be passed to the second parameter of the function represented by the delegate.
Returns a new CVector object, whose elements are the result of applying the specified complex function to the elements of this vector.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ApplyFunction( _
   ByVal function As ComplexFunction2Cmp, _
   ByVal value As Complex _
) As CVector
Visual Basic (Usage)Copy Code
Dim instance As CVector
Dim function As ComplexFunction2Cmp
Dim value As Complex
Dim value As CVector
 
value = instance.ApplyFunction(function, value)
C# 
public CVector ApplyFunction( 
   ComplexFunction2Cmp function,
   Complex value
)
C++/CLI 
public:
CVector^ ApplyFunction( 
   ComplexFunction2Cmp^ function,
   Complex value
) 

Parameters

function
A delegate to a function that takes as its first and second parameter a complex and returns a complex
value
The complex value that will be passed to the second 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.

Remarks

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.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library