Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Transp: TMtx; | Transposes matrix. |
| 2 | function Transp(const Mtx: TMtx): TMtx; | Transpose the Mtx matrix and write the results to the calling matrix. |
Overload 1: function Transp: TMtx;
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 parameter of many TMtx methods. If this operation can not be avoided try using the not-in-place version (see bellow) or see the Matrix.Rotate90 method.
Examples
var A: Matrix;
begin
A.Size(2,1,True); // 2x1 complex matrix
A.SetVal(Cplx(3,4));
A.Transp;
end;
See Also: Matrix.Rotate90
Overload 2: function Transp(const Mtx: TMtx): TMtx;
Transpose the Mtx matrix and write the results to the calling matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx |
Result: stored in self (calling object), returns self for chaining
Remarks:
The Matrix.Rows, Matrix.Cols and Matrix.Complex properties of the calling matrix are adjusted automatically.