TMtx::Transp Method

Overload List

#SignatureDescription
1TMtx *Transp();Transposes matrix.
2TMtx *Transp(TMtx *Mtx);Transpose the Mtx matrix.

Overload 1: TMtx *Transp();

Transposes matrix.

Remarks:

Transposes calling matrix in-place. Instead of using transpose directly, try using the TMtxOperation parameter of many TMtx methods. If this operation can not be avoided try using the not-in-place version (see bellow) or see the TMtx::Rotate90 method.

Examples
#include "MtxVec.h"
#include "Units.Math387.h"
#include "Units.MtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;
using namespace Dew::Math::Units::MtxVec;

void Example()
{
    TMtx* A;

    CreateIt(A);
    A->Size(2, 1, true); // 2x1 complex matrix
    A->SetVal(Cplx(3, 4));
    A->Transp();
    FreeIt(A);
}
See Also: TMtx::Rotate90
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TMtx *Transp(TMtx *Mtx);

Transpose the Mtx matrix.

#NameTypeDescription
1MtxTMtx *
Remarks:

Write the results to the calling matrix. The TMtx::Rows, TMtx::Cols and TMtx::Complex properties of the calling matrix are adjusted automatically.

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler