Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Transp: TMtxInt; | Transposes matrix. |
| 2 | function 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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt | source 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.