Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function ThreshBottom(const Src: TOpenCLMtxVec; Value: double): TOpenCLMtxVec; overload; | Perform threshold operation on all Src object values. |
| └ indexed: function ThreshBottom(const Vec: TOpenCLMtxVec; Value: double; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload; | ||
| 2 | function ThreshBottom(Value: double): TOpenCLMtxVec; overload; | Threshold bottom operation. |
| └ indexed: function ThreshBottom(Value: double; Index, Len: integer): TOpenCLMtxVec; overload; |
Overload 1: function ThreshBottom(const Src: TOpenCLMtxVec; Value: double): TOpenCLMtxVec; overload;
Perform threshold operation on all Src object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Value | double | scalar |
Result: stored in self (calling object), returns self for chaining
Store the results in calling object. Size and clVector.Complex properties of the calling object are adjusted automatically.
Indexed: function ThreshBottom(const Vec: TOpenCLMtxVec; Value: double; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload;
Perform a threshold operation on Vec elements [VecIndex]..[VecIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Value | double | scalar |
| 3 | VecIndex | integer | |
| 4 | Index | integer | start index |
| 5 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the results in the calling object elements [Index]..[Index+Len-1]. Size and clVector.Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.
Overload 2: function ThreshBottom(Value: double): TOpenCLMtxVec; overload;
Threshold bottom operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | double | scalar |
Result: stored in self (calling object), returns self for chaining
Perform threshold operation on all calling object values. The Value parameter is a lower bound for threshold operation. All values smaller than Value will be replaced with Value.
var a: clVector;
begin
a.CopyFromArray(TSingleArray.Create(2,0.1,3,4));
a.ThreshBottom(0.2); // a = [2,0.2,3,4]
end;
Indexed: function ThreshBottom(Value: double; Index, Len: integer): TOpenCLMtxVec; overload;
Perform the threshold operation on calling object values [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | double | scalar |
| 2 | Index | integer | start index |
| 3 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun/underrun.