Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx *FlipVer() const; | Flips the matrix elements vertically |
| 2 | TMtx *FlipVer(TMtx *SrcMtx) const; | Flip all SrcMtx matrix elements vertically and store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix columns. |
Overload 1: TMtx *FlipVer() const;
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 "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix 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]
}
See Also: Matrix::FlipHor
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: TMtx *FlipVer(TMtx *SrcMtx) const;
Flip all SrcMtx matrix elements vertically and store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix columns.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SrcMtx | TMtx * |
Remarks:
The Matrix::Rows, Matrix::Cols and Matrix::Complex properties of callign matrix are adjusted automatically.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix A, B;
A = {{1, 2}, {2, 4}}; // 2x2, not complex matrix
B.FlipVer(A);
// B becomes:
// [2,4]
// [1,2]
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler