Matrix::Transp Method

Overload List

#SignatureDescription
1TMtx *Transp() const;Transposes matrix.
2TMtx *Transp(TMtx *Mtx) const;Transpose the Mtx matrix and write the results to the calling matrix.

Overload 1: TMtx *Transp() const;

Transposes matrix.

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
#include "MtxExpr.h"
#include "Units.Math387.h"

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

void Example()
{
    Matrix A;

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

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

Transpose the Mtx matrix and write the results to the calling matrix.

#NameTypeDescription
1MtxTMtx *
Remarks:

The Matrix::Rows, Matrix::Cols and Matrix::Complex properties of the calling matrix are adjusted automatically.

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler