MatrixInt::Transp Method

Overload List

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

Overload 1: TMtxInt *Transp() const;

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 MatrixInt::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: MatrixInt::Rotate90
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

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

Transpose the Mtx matrix.

#NameTypeDescription
1MtxTMtxInt *
Remarks:

Write the results to the calling matrix. The MatrixInt::Rows, MatrixInt::Cols and TMtxVecInt::IntPrecision properties of the calling matrix are adjusted automatically.

Examples
#include "MtxExprInt.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    MatrixInt A;

    A.Size(2, 1); // 2x1 integer matrix
    A.SetVal(3);
    A.Transp();
}
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler