Matrix.ConcatVert Method

Overload List

#SignatureDescription
1TMtx ConcatVert(TMtx[] Src)Concenates an array of matrices vertically.
2TMtx ConcatVert(Int32 DestRow, Int32 DestCol, TMtx[] Src)Concenate the Src matrices vertically and store the results in calling matrix.

Overload 1: TMtx ConcatVert(TMtx[] Src)

Concenates an array of matrices vertically.

#NameTypeDescription
1SrcTMtx[]

Result: stored in self (calling object), returns self for chaining

Remarks:

Concenate the Src matrices vertically and store the results in calling matrix. The Dew.Math.Matrix.Rows, Dew.Math.Matrix.Cols and Dew.Math.Matrix.Complex properties of the calling matrix are adjusted automatically. An exception is raised, if any of the Src matrices Complex or Cols properties do not match.

Examples
Matrix A;
Matrix B;
Matrix C;
Matrix D;
Matrix 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[A,B]);
// E becomes:
//[E11 E12 E13 E14]
//[E21 E22 E23 E24]
//[A11 A12 E33 E34]
//[B11 B12 E43 E44]s
See Also: Matrix.Concat, Matrix.ConcatHorz

Overload 2: TMtx ConcatVert(Int32 DestRow, Int32 DestCol, TMtx[] Src)

Concenate the Src matrices vertically and store the results in calling matrix.

#NameTypeDescription
1DestRowInt32
2DestColInt32
3SrcTMtx[]

Result: stored in self (calling object), returns self for chaining

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 Complex or Cols properties do not match.