Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLBase *Trunc(TOpenCLBase *Src, int SrcIndex, int Index, int Len); | |
| 2 | TOpenCLMtxVec *Trunc(); | Rounds a real number towards zero. |
| 3 | TOpenCLMtxVec *Trunc(int Index, int Len); | Truncate calling object elements [Index]..[Index+Len-1] in-place. |
| 4 | TOpenCLMtxVec *Trunc(TOpenCLMtxVec *Src); | Truncate all Src object elements. |
| 5 | TOpenCLMtxVec *Trunc(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len); | Truncate Src object elements [SrcIndex]..[SrcIndex+Len-1]. |
Overload 1: TOpenCLBase *Trunc(TOpenCLBase *Src, int SrcIndex, int Index, int Len);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLBase * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Overload 2: TOpenCLMtxVec *Trunc();
Rounds a real number towards zero.
Rounds all calling object elements towards zero to an integer and stores the result in the calling object again as floating point numbers.
Overload 3: TOpenCLMtxVec *Trunc(int Index, int Len);
Truncate calling object elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
An exception is raised if array borders are overrun/underrun.
Overload 4: TOpenCLMtxVec *Trunc(TOpenCLMtxVec *Src);
Truncate all Src object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec * |
Store the results in calling object elements. Size and TOpenCLBase::Complex property of calling object are adjusted automatically.
Overload 5: TOpenCLMtxVec *Trunc(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len);
Truncate Src object elements [SrcIndex]..[SrcIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Store the results to calling object elemenents [Index]..[Index+Len-1]. Size and TOpenCLBase::Complex property of calling object must be set explicitly to match those of Src object. An exception is raised if array borders are overrun/underrun.