TSparseMtx.Transp Method

Overload List

#SignatureDescription
1procedure Transp;Transpose sparse matrix in-place.
2procedure Transp(const Src: TSparseMtx);Transpose Src sparse matrix.
3procedure Transp(const Src: TSparseMtx; const P: TIntegerArray; const Q: TIntegerArray);

Overload 1: procedure Transp;

Transpose sparse matrix in-place.

Result: stored in self (calling object)

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: procedure Transp(const Src: TSparseMtx);

Transpose Src sparse matrix.

#NameTypeDescription
1SrcTSparseMtx

Result: stored in self (calling object)

Remarks:

Store the results in calling sparse matrix. Size and Complex properties of calling sparse matrix are adjusted automatically.

Overload 3: procedure Transp(const Src: TSparseMtx; const P: TIntegerArray; const Q: TIntegerArray);

#NameTypeDescription
1SrcTSparseMtx
2PTIntegerArray
3QTIntegerArray

Result: stored in self (calling object)