Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Erf: TOpenCLMtxVec; | Error functon of values. |
| └ indexed: function Erf(Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function Erf(const Src: TOpenCLMtxVec): TOpenCLMtxVec; | Calculates the error function for all Src object values. |
| └ indexed: function Erf(const Src: TOpenCLMtxVec; SrcIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function Erf: TOpenCLMtxVec;
Error functon of values.
Result: stored in self (calling object), returns self for chaining
Calculates the error function for all object values in-place.
var a: clMatrix;
ind: Integer;
begin
a.CopyFromArray(2,2,TSingleArray.Create(1, 5.5, -1.6, 6)); // a = [1, 5.5, -1.6, 6]
a.Erf;
end;
Indexed: function Erf(Index: Integer; Len: Integer): TOpenCLMtxVec;
Calculates the error function for calling object elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.
Overload 2: function Erf(const Src: TOpenCLMtxVec): TOpenCLMtxVec;
Calculates the error function for all Src object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object. Size and clMatrix.Complex properties of calling object are adjusted automatically.
Indexed: function Erf(const Src: TOpenCLMtxVec; SrcIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Calculates the error function for Src object elements [SrcIndex]..[SrcIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | |
| 2 | SrcIndex | Integer | source start index |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.