You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > ConcatHorz Method > TMtx.ConcatHorz Method (array of TMtx)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.ConcatHorz Method (array of TMtx)

Concenates an array of matrices horizontally.

Pascal
function ConcatHorz(const Src: array of TMtx): TMtx; overload;

Concenate the Src matrices horizontally and store the results in the calling matrix. The Rows, Cols and TMtxVec.ComplexComplexproperties of the calling matrix are adjusted automatically. An exception is raised if any of the Src matrices Complex or Rows property does not match.

var A,B,C,D,E: TMtx; begin CreateIt(A,B,C,D); CreateIt(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 FreeIt(E); FreeIt(A,B,C,D); end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!