Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Normalize(const Vec: TOpenCLMtxVec; const SubOffset: TCplx; const DivFactor: double): TOpenCLMtxVec; overload; | Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor. |
| └ indexed: function Normalize(const Vec: TOpenCLMtxVec; const SubOffset: TCplx; const DivFactor: double; VecIndex,Index,Len: integer): TOpenCLMtxVec; overload; | ||
| 2 | function Normalize(const Vec: TOpenCLMtxVec; const SubOffset, DivFactor: double): TOpenCLMtxVec; overload; | Normalize object. |
| └ indexed: function Normalize(const Vec: TOpenCLMtxVec; const SubOffset, DivFactor: double; VecIndex,Index,Len: integer): TOpenCLMtxVec; overload; |
Overload 1: function Normalize(const Vec: TOpenCLMtxVec; const SubOffset: TCplx; const DivFactor: double): TOpenCLMtxVec; overload;
Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | SubOffset | TCplx | scalar |
| 3 | DivFactor | double | scalar |
Result: stored in self (calling object), returns self for chaining
Size and TOpenCLBase.Complex property of calling object are adjusted automatically.
Indexed: function Normalize(const Vec: TOpenCLMtxVec; const SubOffset: TCplx; const DivFactor: double; VecIndex,Index,Len: integer): TOpenCLMtxVec; overload;
Normalize Vec object complex values [VecIndex]..[VecIndex+Len-1] by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | SubOffset | TCplx | scalar |
| 3 | DivFactor | double | scalar |
| 4 | VecIndex | integer | |
| 5 | Index | integer | start index |
| 6 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the results in calling vector complex values [Index]..[Index+Len-1]. An exception is calling object is not complex or array borders are overrun/underrun.
Overload 2: function Normalize(const Vec: TOpenCLMtxVec; const SubOffset, DivFactor: double): TOpenCLMtxVec; overload;
Normalize object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | SubOffset | double | scalar |
| 3 | DivFactor | double | scalar |
Result: stored in self (calling object), returns self for chaining
Normalizes Vec object by subtracting a constant Offset from Vec elements and dividing the result by constant Factor:
The results are stored in calling object. Use this method if you want to do a multiply and add (scale and offset) operations in a single method call.
var a,b: clMatrix;
begin
a.CopyFromArray(2,2,TSingleArray.Create(1,2,3,4));
b.Normalize(a,2,3);
end;
Indexed: function Normalize(const Vec: TOpenCLMtxVec; const SubOffset, DivFactor: double; VecIndex,Index,Len: integer): TOpenCLMtxVec; overload;
Normalize Vec object values [VecIndex]..[VecIndex+Len-1] by subtracting a real constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | SubOffset | double | scalar |
| 3 | DivFactor | double | scalar |
| 4 | VecIndex | integer | |
| 5 | Index | integer | start index |
| 6 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the results in calling vector values [Index]..[Index+Len-1]. An exception is raised if Vec or calling object is complex or array borders are overrun/underrun.