Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec Sgn | Computes signum function of calling object elements. |
| └ indexed: TOpenCLMtxVec Sgn(Int32 Index, Int32 Len) | ||
| 2 | TOpenCLMtxVec Sgn(TOpenCLMtxVec Src) | Computes signum function from Src elements and stores the result in the calling object. |
| └ indexed: TOpenCLMtxVec Sgn(TOpenCLMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len) |
Overload 1: TOpenCLMtxVec Sgn
Computes signum function of calling object elements.
Result: stored in self (calling object), returns self for chaining
Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.
Indexed: TOpenCLMtxVec Sgn(Int32 Index, Int32 Len)
Computes signum function of calling object elements [Index..Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.
Overload 2: TOpenCLMtxVec Sgn(TOpenCLMtxVec Src)
Computes signum function from Src elements and stores the result in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.clVector.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.
Indexed: TOpenCLMtxVec Sgn(TOpenCLMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 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 | source TOpenCLVector or TOpenCLMatrix |
| 2 | SrcIndex | Int32 | source start index |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.clVector.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.