Overload List
| # | Signature | Description |
|---|---|---|
| 1 | Matrix ConcatHorz(TMtx[] Src) | Horizontally concatenate a list of matrices in to one big matrix. |
| 2 | Matrix ConcatHorz(Int32 DestRow, Int32 DestCol, TMtx[] Src) | Horizontally concatenate a list of matrices in to one big matrix. |
Overload 1: Matrix ConcatHorz(TMtx[] Src)
Horizontally concatenate a list of matrices in to one big matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtx[] |
Returns: Matrix
Remarks:
Internally calls Dew.Math.Matrix.ConcatHorz
Examples
TMtx A;
TMtx B;
TMtx C;
TMtx D;
TMtx 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: Matrix ConcatHorz(Int32 DestRow, Int32 DestCol, TMtx[] Src)
Horizontally concatenate a list of matrices in to one big matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | DestRow | Int32 | |
| 2 | DestCol | Int32 | |
| 3 | Src | TMtx[] |
Returns: Matrix
Remarks:
Internally calls Dew.Math.Matrix.ConcatHorz