Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxInt *FlipVer(); | Flips the matrix elements vertically |
| 2 | TMtxInt *FlipVer(TMtxInt *SrcMtx); | Flip all SrcMtx matrix elements vertically. |
Overload 1: TMtxInt *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 "MtxVecInt.h"
#include "Units.MtxVecInt.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;
void Example()
{
TMtxInt *A, *B;
CreateIt(A, B);
A->SetIt(2, 2, DewArray<int>{1, 2,
2, 4}); // 2x2, integer matrix
B->FlipVer(A);
// B becomes:
// [2,4]
// [1,2]
FreeIt(A, B);
}
See Also: TMtxByte::FlipHor
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler
Overload 2: TMtxInt *FlipVer(TMtxInt *SrcMtx);
Flip all SrcMtx matrix elements vertically.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SrcMtx | TMtxInt * |
Remarks:
Store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix columns. The TMtxByte::Rows, TMtxByte::Cols and TMtxByte::IntPrecision properties of callign matrix are adjusted automatically.
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler