Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx *FlipHor(); | Flips the matrix elements horizontally. |
| 2 | TMtx *FlipHor(TMtx *SrcMtx); | Flip all SrcMtx matrix elements horizontally. |
Overload 1: TMtx *FlipHor();
Flips the matrix elements horizontally.
Remarks:
Flip calling matrix elements horizontally - element [row, j] = element [row, Cols-j]. This operation is performed on all calling matrix rows.
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->FlipHor(A);
// B becomes:
// [2,1]
// [4,2]
FreeIt(A, B);
}
See Also: TMtx::FlipVer
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler
Overload 2: TMtx *FlipHor(TMtx *SrcMtx);
Flip all SrcMtx matrix elements horizontally.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SrcMtx | TMtx * |
Remarks:
Store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix rows. 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