Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Inv: TOpenCLMtxVec; | Inverse elements. |
| └ indexed: function Inv(Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function Inv(const X: TOpenCLMtxVec): TOpenCLMtxVec; | Calculate the inverse of all X object elements without limiting operating. |
| └ indexed: function Inv(const X: TOpenCLMtxVec; XIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function Inv: TOpenCLMtxVec;
Inverse elements.
Result: stored in self (calling object), returns self for chaining
Calculates the inverse of all calling object elements in-place without limiting inverse operation.
var a,b: clVector;
begin
a.CopyFromArray(TSingleArray.Create(1,2,3,4)); // a = [1, 2, 3, 4]
b.Inv(a); // b = [1.0, 0.5, 0.3333, 0.25]
end;
Indexed: function Inv(Index: Integer; Len: Integer): TOpenCLMtxVec;
Calculate the inverse of 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/underrun.
Overload 2: function Inv(const X: TOpenCLMtxVec): TOpenCLMtxVec;
Calculate the inverse of all X object elements without limiting operating.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
Store the results in calling object. Size and TOpenCLBase.Complex property of calling object are adjusted automatically.
Indexed: function Inv(const X: TOpenCLMtxVec; XIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Calculate the inverse of X object elements [XIndex]..[XIndex+Len-1] without limiting operating.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | XIndex | Integer | X start index |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if X and calling object TOpenCLBase.Complex property does not match or array borders are overrun/underrun.