Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLBase *Sgn(TOpenCLBase *Src, int SrcIndex, int Index, int Len); | |
| 2 | TOpenCLMtxVec *Sgn(); | Computes signum function of calling object elements. |
| 3 | TOpenCLMtxVec *Sgn(int Index, int Len); | Computes signum function of calling object elements [Index..Index+Len-1]. |
| 4 | TOpenCLMtxVec *Sgn(TOpenCLMtxVec *Src); | Computes signum function from Src elements and stores the result in the calling object. |
| 5 | TOpenCLMtxVec *Sgn(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len); | Computes signum function from Src elements [SrcIndex..SrcIndex+Len-1] and stores the result in the calling object [Index..Index+Len-1]. |
Overload 1: TOpenCLBase *Sgn(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 *Sgn();
Computes signum function of calling object elements.
Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.
Overload 3: TOpenCLMtxVec *Sgn(int Index, int Len);
Computes signum function of calling object elements [Index..Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.
Overload 4: TOpenCLMtxVec *Sgn(TOpenCLMtxVec *Src);
Computes signum function from Src elements and stores the result in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec * |
Size and TOpenCLBase::Complex properties of calling object are adjusted automatically. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.
Overload 5: TOpenCLMtxVec *Sgn(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len);
Computes signum function from Src elements [SrcIndex..SrcIndex+Len-1] and stores the result in the calling object [Index..Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Size and TOpenCLBase::Complex properties of calling object are adjusted automatically. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.