TMtxInt *Concat(int ARows, int ACols, const DewArray<TMtxInt *> &Src);
Concatenate an array of matrices to single matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | int | |
| 2 | ACols | int | |
| 3 | Src | const DewArray<TMtxInt *> & |
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 TMtxSmallInt::Rows, TMtxSmallInt::Cols and TMtxSmallInt::IntPrecision properties of the calling matrix are adjusted automatically.
Examples
#include "MtxVecInt.h"
#include "Units.MtxVecInt.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;
void Example()
{
TMtxInt *A, *B, *C, *D, *E;
CreateIt(A, B, C, D);
CreateIt(E);
A->Size(2, 2);
B->Size(A);
C->Size(A);
D->Size(A);
E->Concat(2, 2, DewArray<TMtxInt*>{A, B,
C, D}); // form one 4x4 matrix
FreeIt(E);
FreeIt(A, B, C, D);
}
See Also: TMtxSmallInt::ConcatHorz, TMtxSmallInt::ConcatVert
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler