Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxInt *ConcatVert(const DewArray<TMtxInt *> &Src); | Concenates an array of matrices vertically. |
| 2 | TMtxInt *ConcatVert(int DestRow, int DestCol, const DewArray<TMtxInt *> &Src); | Concenate the Src matrices vertically and store the results in calling matrix. |
Overload 1: TMtxInt *ConcatVert(const DewArray<TMtxInt *> &Src);
Concenates an array of matrices vertically.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | const DewArray<TMtxInt *> & |
Remarks:
Concenate the Src matrices vertically and store the results in calling matrix. The TMtxByte::Rows, TMtxByte::Cols and TMtxByte::IntPrecision properties of the calling matrix are adjusted automatically. An exception is raised, if any of the Src matrices IntPrecision or Cols properties do not match.
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(1, 2);
B->Size(A);
E->Size(4, 4);
// overwrite the lower part of the E matrix
// with values from A and B
E->ConcatVert(2, 2, DewArray<TMtxInt *>{A, B});
// E becomes:
//[E11 E12 E13 E14]
//[E21 E22 E23 E24]
//[A11 A12 E33 E34]
//[B11 B12 E43 E44]
FreeIt(E);
FreeIt(A, B, C, D);
}
See Also: TMtxByte::Concat, TMtxByte::ConcatHorz
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler
Overload 2: TMtxInt *ConcatVert(int DestRow, int DestCol, const DewArray<TMtxInt *> &Src);
Concenate the Src matrices vertically and store the results in calling matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | DestRow | int | |
| 2 | DestCol | int | |
| 3 | Src | const DewArray<TMtxInt *> & |
Remarks:
The DestRow and DestCol parameters indicate the starting position (in the calling matrix) for concatenating. An exception is raised, if the calling matrix array bounds are overrun. An exception is raised, if any of the Src matrices IntPrecision or Cols properties do not match.
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler