TMtx::FlipVer Method

Overload List

#SignatureDescription
1TMtx *FlipVer();Flips the matrix elements vertically
2TMtx *FlipVer(TMtx *SrcMtx);Flip all SrcMtx matrix elements vertically.

Overload 1: TMtx *FlipVer();

Flips the matrix elements vertically

Remarks:

Flip calling matrix elements vertically - element [j, col] = element [Rows-j, col]. This operation is performed on all calling matrix columns.

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

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

void Example()
{
    TMtx *A, *B;

    CreateIt(A, B);
    A->SetIt(2, 2, false, DewArray<double>{1, 2,
        2, 4});  // 2x2, not complex matrix
    B->FlipVer(A);
    // B becomes:
    // [2,4]
    // [1,2]
    FreeIt(A, B);
}
See Also: TMtx::FlipHor
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TMtx *FlipVer(TMtx *SrcMtx);

Flip all SrcMtx matrix elements vertically.

#NameTypeDescription
1SrcMtxTMtx *
Remarks:

Store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix columns. The TMtx::Rows, TMtx::Cols and TMtx::Complex properties of callign matrix are adjusted automatically.

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