Summary
Concatenate an array of matrices to single matrix.
Class
TMtx
Declaration
Function Concat(ARows, ACols: integer; const Src: array of TMtx): TMtx;
Description
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.
Example 1
var A,B,C,D,E: TMtx;
begin
CreateIt(A,B,C,D);
CreateIt(E);
try
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
finally
FreeIt(E);
FreeIt(A,B,C,D);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com