MatrixInt.ResizeAndTranspose Method

TMtxInt ResizeAndTranspose(TMtxInt Src, Int32 NewRows, Int32 NewCols)

Resize and transpose.

#NameTypeDescription
1SrcTMtxIntsource TMtxInt
2NewRowsInt32
3NewColsInt32

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

Remarks:

Resizes the calling matrix to NewRows and NewCols and then copies the Src matrix values to the calling matrix. The elements outside the newly created matrix size are not referenced. At the end the method also transposes the Src matrix. All this operations are performed in one single pass.