Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *Trunc() const; | Rounds a real number towards zero. |
| 2 | TMtxVec *Trunc(int Index, int Len) const; | Truncate calling object elements [Index]..[Index+Len-1] in-place. |
| 3 | TMtxVec *Trunc(TMtxVec *Src) const; | Truncate all Src object elements and store the results in calling object elements. |
| 4 | void Trunc(DewArray<int> &Dst) const; | Truncate all calling object elements and store the result in the Dst integer array. |
| 5 | TMtxVec *Trunc(TMtxVec *Src, int SrcIndex, int Index, int Len) const; | Truncate Src object elements [SrcIndex]..[SrcIndex+Len-1] and store the results to calling object elemenents [Index]..[Index+Len-1]. |
Overload 1: TMtxVec *Trunc() const;
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 2: TMtxVec *Trunc(int Index, int Len) const;
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 3: TMtxVec *Trunc(TMtxVec *Src) const;
Truncate all Src object elements and store the results in calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * |
Size and Vector::Complex property of calling object are adjusted automatically.
Overload 4: void Trunc(DewArray<int> &Dst) const;
Truncate all calling object elements and store the result in the Dst integer array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | DewArray<int> & |
Length of the array is automatically adjusted. If the calling object is Complex, the length of the Dst array is equal to 2*Vector::Length.
Overload 5: TMtxVec *Trunc(TMtxVec *Src, int SrcIndex, int Index, int Len) const;
Truncate Src object elements [SrcIndex]..[SrcIndex+Len-1] and store the results to calling object elemenents [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Size and Vector::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.