Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx *ConcatHorz(const DewArray<TMtx *> &Src) const; | Concenates an array of matrices horizontally. |
| 2 | TMtx *ConcatHorz(int DestRow, int DestCol, const DewArray<TMtx *> &Src) const; | Concenate the Src matrices horizontally and store the results in the calling matrix. |
Overload 1: TMtx *ConcatHorz(const DewArray<TMtx *> &Src) const;
Concenates an array of matrices horizontally.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | const DewArray<TMtx *> & |
Remarks:
Concenate the Src matrices horizontally and store the results in the calling matrix. The Matrix::Rows, Matrix::Cols and Matrix::Complex properties of the calling matrix are adjusted automatically. An exception is raised if any of the Src matrices Complex or Rows property does not match.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix A, B, C, D, E;
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, 0, DewArray<TMtx*>{A, B});
//E becomes:
//[E11 E12 E13 E14]
//[E21 E22 E23 E24]
//[A11 A12 B11 B12]
//[A21 A22 B21 B22]
}
See Also: Matrix::Concat, Matrix::ConcatVert
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: TMtx *ConcatHorz(int DestRow, int DestCol, const DewArray<TMtx *> &Src) const;
Concenate the Src matrices horizontally and store the results in the calling matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | DestRow | int | |
| 2 | DestCol | int | |
| 3 | Src | const DewArray<TMtx *> & |
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 Complex or Rows properties do not match.
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler