MtxExpr.Concat Method

Overload List

#SignatureDescription
1function Concat(const X1: TMtxVec; const X2: TMtxVec): Vector;Concatenates multiple Vectors in to a single one.
2function Concat(const Src: TVecArray): Vector;Concatenates multiple Vectors in to a single one.
3function 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.

#NameTypeDescription
1X1TMtxVec
2X2TMtxVec

Returns: Vector

Remarks:

Internally calls Vector.Concat

Overload 2: function Concat(const Src: TVecArray): Vector;

Concatenates multiple Vectors in to a single one.

#NameTypeDescription
1SrcTVecArray

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.

#NameTypeDescription
1ARowsInteger
2AColsInteger
3SrcTMtxArray

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;