Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxInt *Transp(); | Transposes matrix. |
| 2 | TMtxInt *Transp(TMtxInt *Mtx); | Transpose the Mtx matrix. |
Overload 1: TMtxInt *Transp();
Transposes matrix.
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 TMtxByte::Rotate90 method.
Examples
#include "MtxVecInt.h"
#include "Units.MtxVecInt.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;
void Example()
{
TMtxInt* A;
CreateIt(A);
A->Size(2, 1); // 2x1 integer matrix
A->SetVal(3);
A->Transp();
FreeIt(A);
}
See Also: TMtxByte::Rotate90
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler
Overload 2: TMtxInt *Transp(TMtxInt *Mtx);
Transpose the Mtx matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt * |
Remarks:
Write the results to the calling matrix. The TMtxByte::Rows, TMtxByte::Cols and TMtxByte::IntPrecision properties of the calling matrix are adjusted automatically.
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler