TMtxInt Concat(Int32 ARows, Int32 ACols, TMtxInt[] Src)
Concatenate an array of matrices to single matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | Int32 | |
| 2 | ACols | Int32 | |
| 3 | Src | TMtxInt[] |
Result: stored in self (calling object), returns self for chaining
Remarks:
Concatenate an array of matrices to form one big matrix and store the result in the calling matrix. The dimensions of the block matrices in the Src array must match, to form the new matrix. The block matrices must have matching integer precision or an exception will be raised. You must specify Arows*ACols block matrices in the Src array. The Dew.Math.TMtxInt.Rows, Dew.Math.TMtxInt.Cols and Dew.Math.TMtxVecInt.IntPrecision properties of the calling matrix are adjusted automatically.
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);
C.Size(A);
D.Size(A);
E.Concat(2,2[A,B
C,D]); // form one 4x4 matrix
}
finally
{
MtxVec.FreeIt(ref E);
MtxVec.FreeIt(ref A, ref B, ref C, ref D);
}