You are here: Symbol Reference > MtxVecInt Namespace > Classes > TMtxInt Class > public > Transp Method > TMtxInt.Transp Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxInt.Transp Method ()

Transposes matrix.

Pascal
function Transp: TMtxInt; overload;

Transposes calling matrix in-place. Instead of using transpose directly, try using the TMtxOperation parameter of many TMtxInt methods. If this operation can not be avoided try using the not-in-place version (see bellow) or see the Rotate90 method.

var A: TMtxInt; begin CreateIt(A); A.Size(2,1); // 2x1 integer matrix A.SetVal(3); A.Transp; FreeIt(A); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!