Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure Copy(const Src: TMtx); overload; | |
| 2 | procedure Copy(const Src: TMtxInt); overload; | |
| 3 | function Copy(const Vec: TOpenCLMtxVec): TOpenCLMtxVec; overload; | Copy object values. |
| └ indexed: function Copy(const Vec: TOpenCLMtxVec; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload; | ||
| 4 | procedure Copy(const Src: TVec); overload; | |
| 5 | procedure Copy(const Src: TVecInt); overload; |
Overload 1: procedure Copy(const Src: TMtx); overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtx | source TMtx |
Result: stored in self (calling object)
Overload 2: procedure Copy(const Src: TMtxInt); overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxInt | source TMtxInt |
Result: stored in self (calling object)
Overload 3: function Copy(const Vec: TOpenCLMtxVec): TOpenCLMtxVec; overload;
Copy object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
Remarks:
Copy each of Vec elements to the calling object. Size and clMatrix.Complex properties of the calling object are set implicitly to match Vec object.
Examples
var a,b,c: clMatrix;
begin
a.CopyFromArray(2,2,TSingleArray.Create(1,2,3,4)); // a = [1,2,3,4]
b.Copy(a); // b = [1,2,3,4]
end;
See Also: clMatrix.Assign
Indexed: function Copy(const Vec: TOpenCLMtxVec; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload;
Copy Vec elements [VecIndex]..[VecIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | VecIndex | integer | |
| 3 | Index | integer | start index |
| 4 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Remarks:
Size and clMatrix.Complex properties must be set explicitly. An exception is raised if array borders are overrun or underrun.
Overload 4: procedure Copy(const Src: TVec); overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVec | source TVec |
Result: stored in self (calling object)
Overload 5: procedure Copy(const Src: TVecInt); overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVecInt | source TVecInt |
Result: stored in self (calling object)