TMtxSmallInt.ConcatHorz Method

Overload List

#SignatureDescription
1TMtxInt ConcatHorz(TMtxInt[] Src)Concenates an array of matrices horizontally.
2TMtxInt ConcatHorz(Int32 DestRow, Int32 DestCol, TMtxInt[] Src)Concenate the Src matrices horizontally and store the results in the calling matrix.

Overload 1: TMtxInt ConcatHorz(TMtxInt[] Src)

Concenates an array of matrices horizontally.

#NameTypeDescription
1SrcTMtxInt[]

Result: stored in self (calling object), returns self for chaining

Remarks:

Concenate the Src matrices horizontally and store the results in the calling matrix. The Dew.Math.TMtxInt.Rows, Dew.Math.TMtxInt.Cols and Dew.Math.TMtxVecInt.IntPrecision properties of the calling matrix are adjusted automatically. An exception is raised if any of the Src matrices IntPrecision or Rows property does not match.

Examples
TMtxInt A;
TMtxInt B;
TMtxInt C;
TMtxInt D;
TMtxInt E;
MtxVec.CreateIt(out A, out B, out C, out D);
MtxVec.CreateIt(out E);
try
    {
        A.Size(2,2);
        B.Size(A);
        E.Size(4,4);
        // overwrite the lower part of the E matrix
        //    with values from A and B
        E.ConcatHorz(2,2,[A,B]);
        //E becomes:
        //[E11 E12 E13 E14]
        //[E21 E22 E23 E24]
        //[A11 A12 B11 B12]
        //[A21 A22 B21 B22]
    }
finally
    {
        MtxVec.FreeIt(ref E);
        MtxVec.FreeIt(ref A, ref B, ref C, ref D);
    }

Overload 2: TMtxInt ConcatHorz(Int32 DestRow, Int32 DestCol, TMtxInt[] Src)

Concenate the Src matrices horizontally and store the results in the calling matrix.

#NameTypeDescription
1DestRowInt32
2DestColInt32
3SrcTMtxInt[]

Result: stored in self (calling object), returns self for chaining

Remarks:

The DestRow and DestCol parameters indicate the starting position (in the calling matrix) for concenating. An exception is raised, if the calling matrix array bounds are overrun. An exception is raised, if any of the Src matrices IntPrecision or Rows properties do not match.