TOpenCLMtxVec RealPart(TOpenCLMtxVec Vec)
Gets real part of complex object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
The method method gets the real part of a complex object Vec and stores the real results in the calling object. Size and Dew.Math.clMatrix.Complex properties of the calling object are set implicitly to match Vec object. Vec Dew.Math.clMatrix.Complex property must be true otherwise an exception is raised.
clMatrix a;
clMatrix b;
a.CopyCplxFromArray(1,2,TSingleArray.Create(1,2,3,4)); // = [1+2i, 3+4i]
b.RealPart(a); // b = new double[] {1,3}
Indexed: TOpenCLMtxVec RealPart(TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)
Gets the real part of a Vec object complex elements [VecIndex]..[VecIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | VecIndex | Int32 | |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Stores the results in calling object real elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun or if Vec object Dew.Math.clMatrix.Complex propety is false.