You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Matrix.Concat Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Concat Method

Concatenate an array of matrices to single matrix.

Pascal
function Concat(ARows: integer; ACols: integer; const Src: array of TMtx): TMtx; overload;

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 be all real or all complex, otherwise an exception will be raised. You must specify Arows*ACols block matrices in the Src array. The Rows, Cols and Complex properties of the calling matrix are adjusted automatically.

var A,B,C,D,E: Matrix; begin A.Size(2,2); B.Size(A); C.Size(A); D.Size(A); E.Concat(2,2[A,B C,D]); // form one 4x4 matrix end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!