Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec Frac | Fractional part of values. |
| └ indexed: TOpenCLMtxVec Frac(Int32 Index, Int32 Len) | ||
| 2 | TOpenCLMtxVec Frac(TOpenCLMtxVec X) | Calculates the fractional part for all X object values. |
| └ indexed: TOpenCLMtxVec Frac(TOpenCLMtxVec X, Int32 XIndex, Int32 Index, Int32 Len) |
Overload 1: TOpenCLMtxVec Frac
Fractional part of values.
Result: stored in self (calling object), returns self for chaining
Calculates the fractional part for all object values in-place.
clMatrix a;
Integer ind;
a.CopyFromArray(2,2,TSingleArray.Create(1,5.5,-1.6,6)); // a = new double[] {1, 5.5, -1.6, 6}
a.Frac; // a = new double[] {0, 0.5, -0.6, 0}
}
finally
{
a.Free;
Indexed: TOpenCLMtxVec Frac(Int32 Index, Int32 Len)
Calculates the fractional part for calling object elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.
Overload 2: TOpenCLMtxVec Frac(TOpenCLMtxVec X)
Calculates the fractional part for all X object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object. Size and Dew.Math.clMatrix.Complex properties of calling object are adjusted automatically.
Indexed: TOpenCLMtxVec Frac(TOpenCLMtxVec X, Int32 XIndex, Int32 Index, Int32 Len)
Calculates the fractional part for X object elements [XIndex]..[XIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | XIndex | Int32 | X start index |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.