Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec RealToCplx(TOpenCLMtxVec ReVec, TOpenCLMtxVec ImVec) | Constructs a complex object from two real objects. |
| 2 | TOpenCLMtxVec RealToCplx(TOpenCLMtxVec ReVec, TOpenCLMtxVec ImVec, Int32 ReIndex, Int32 ImIndex, Int32 Index, Int32 Len) | Construct a complex object from the ReVec elements [ReIndex]..[ReIndex+Len-1] (real part) and the ImVec elements [ImIndex]..[ImIndex+Len-1] (imaginary part). |
Overload 1: TOpenCLMtxVec RealToCplx(TOpenCLMtxVec ReVec, TOpenCLMtxVec ImVec)
Constructs a complex object from two real objects.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ReVec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | ImVec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
Construct a complex object from the ReVec (real part) and the ImVec (imaginary part) objects. The results are stored in the calling object. Size and Dew.Math.TOpenCLBase.Complex properties of the calling object are set implicitly to match ReVec and ImVec objects. An exception is raised if ReVec or ImVec Dew.Math.TOpenCLBase.Complex property is True.
clVector a;
clVector b;
clVector c;
a.CopyFromArray(TSingleArray.Create(1,2,3,4));
b.CopyFromArray(TSingleArray.Create(2,2,3,4));
c.RealToCplx(a,b);
Overload 2: TOpenCLMtxVec RealToCplx(TOpenCLMtxVec ReVec, TOpenCLMtxVec ImVec, Int32 ReIndex, Int32 ImIndex, Int32 Index, Int32 Len)
Construct a complex object from the ReVec elements [ReIndex]..[ReIndex+Len-1] (real part) and the ImVec elements [ImIndex]..[ImIndex+Len-1] (imaginary part).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ReVec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | ImVec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 3 | ReIndex | Int32 | |
| 4 | ImIndex | Int32 | |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
The results are stored to calling object elements [Index]..[Index+Len-1]. Size and Dew.Math.TOpenCLBase.Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun. An exception is also raised if ReVec or ImVec Dew.Math.TOpenCLBase.Complex property is True.