Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Concat(const X1: TMtxVec; const X2: TMtxVec): Vector; | Concatenates multiple Vectors in to a single one. |
| 2 | function Concat(const Src: TVecArray): Vector; | Concatenates multiple Vectors in to a single one. |
| 3 | function Concat(ARows: Integer; ACols: Integer; const Src: TMtxArray): Matrix; | Concatenate a list of matrices in to one big matrix. |
Overload 1: function Concat(const X1: TMtxVec; const X2: TMtxVec): Vector;
Concatenates multiple Vectors in to a single one.
Returns: Vector
Remarks:
Internally calls Vector.Concat
Overload 2: function Concat(const Src: TVecArray): Vector;
Concatenates multiple Vectors in to a single one.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVecArray |
Returns: Vector
Remarks:
Internally calls Vector.Concat
Examples
var a,b,c,d: TVec;
begin
CreateIt(a,b,c,d);
try
a.SetIt(False,[1,2,3]);
b.Copy(a);
c.Concat([a,b]); // c = [1,2,3,1,2,3]
d.Size(10,True);
d.SetZero(0,4);
d.Concat(4,[c]); // d = [0,0,0,0,1,2,3,1,2,3]
finally
FreeIt(a,b,c,d);
end;
end;
Overload 3: function Concat(ARows: Integer; ACols: Integer; const Src: TMtxArray): Matrix;
Concatenate a list of matrices in to one big matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | Integer | |
| 2 | ACols | Integer | |
| 3 | Src | TMtxArray |
Returns: Matrix
Remarks:
Internally calls Matrix.Concat
Examples
var A,B,C,D,E: TMtx;
begin
CreateIt(A,B,C,D);
CreateIt(E);
try
A.Size(2,2);
B.Size(A);
C.Size(A);
D.Size(A);
E.Concat(2,2,[A,B
C,D]); // form one 4x4 matrix
finally
FreeIt(E);
FreeIt(A,B,C,D);
end;
end;