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

Transposes matrix.

Pascal
function Transp: TMtx; overload;

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

var A: TMtx; begin CreateIt(A); A.Size(2,1,True); // 2x1 complex matrix A.SetVal(Cplx(3,4)); 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!