Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec *FixAngle() const; | Sets angle in [-2PI,2PI]. |
| 2 | TOpenCLMtxVec *FixAngle(int Index, int Len) const; | FixAngle for calling object complex elements [Index]..[Index+Len-1] in-place. |
| 3 | TOpenCLMtxVec *FixAngle(TOpenCLMtxVec *Src) const; | Sets angle in [-2PI,2PI] for all Src elements. |
| 4 | TOpenCLMtxVec *FixAngle(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len) const; | Sets angle in [-2PI,2PI] for Src elements [SrcIndex]..[SrcIndex+Len-1] and store the results in the calling object elements [Index]..[Index+Len-1]. |
Overload 1: TOpenCLMtxVec *FixAngle() const;
Sets angle in [-2PI,2PI].
Returns: ThetaRad within -2Math387::PI and Math387::PI interval.
Calling this function prior to passing the value to trigonometric functions can significantly improve numerical accuracy.
Sine/cosine appear within many other functions especially complex versions of trigonometric functions. FixAngle method is not used implicitely within TOpenCLMtxVec methods. To achieve maximum performance make sure that the arguments passed to complex trigonometric functions are "small" or scaled down.
Note
The vector must be real.
Overload 2: TOpenCLMtxVec *FixAngle(int Index, int Len) const;
FixAngle for calling object complex elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
An exception is raised if calling object clMatrix::Complex property is True or if array borders are overrun/underrun.
Overload 3: TOpenCLMtxVec *FixAngle(TOpenCLMtxVec *Src) const;
Sets angle in [-2PI,2PI] for all Src elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec * |
Stores the results in the calling object. Size and clMatrix::Complex properties of the calling vector are set implicitly to match the Src object.
Overload 4: TOpenCLMtxVec *FixAngle(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len) const;
Sets angle in [-2PI,2PI] for Src elements [SrcIndex]..[SrcIndex+Len-1] and store the results in the calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Size and clMatrix::Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun.