TMtxSmallInt.Transp Method

Overload List

#SignatureDescription
1function Transp: TMtxInt;Transposes matrix.
2function Transp(const Mtx: TMtxInt): TMtxInt;Transpose the Mtx matrix.

Overload 1: function Transp: TMtxInt;

Transposes matrix.

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

Remarks:

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 TMtxInt.Rotate90 method.

Examples
var  A: TMtx;
begin
    CreateIt(A);
    A.Size(2,1,True); // 2x1 complex matrix
    A.SetVal(Cplx(3,4));
    A.Transp;
    FreeIt(A);
end;

Overload 2: function Transp(const Mtx: TMtxInt): TMtxInt;

Transpose the Mtx matrix.

#NameTypeDescription
1MtxTMtxIntsource TMtxInt

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

Remarks:

Write the results to the calling matrix. The TMtxInt.Rows, TMtxInt.Cols and TMtxVecInt.IntPrecision properties of the calling matrix are adjusted automatically.