TOpenCLMtxVec ExtendToComplex(TOpenCLMtxVec Src, Boolean Zeros)
Extend Vec object to complex calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Zeros | Boolean |
Result: stored in self (calling object), returns self for chaining
Remarks:
If Zeros is true then the calling vector imaginary part is set to zero, otherwise the calling object imaginary part is the same as calling object real part.
Examples
clMatrix a;
clMatrix b;
a.CopyFromArray(2,2, TSingleArray.Create(1,2,3,4));
b.ExtendToComplex(a,true);
Indexed: TOpenCLMtxVec ExtendToComplex(TOpenCLMtxVec Src, Boolean Zeros, Int32 SrcIndex, Int32 DstIndex, Int32 Len)
Converts the source to complex.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Zeros | Boolean | |
| 3 | SrcIndex | Int32 | source start index |
| 4 | DstIndex | Int32 | destination start index |
| 5 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Remarks:
Converts the source to complex by setting the imaginary part to either zero (zeros = True) or same as real (zeros = false). Does not set size of the calling vector. If there is not sufficient space available to store the result an exception will be raised.