Matrix.FlipVer Method

Overload List

#SignatureDescription
1function FlipVer: TMtx;Flips the matrix elements vertically
2function FlipVer(const SrcMtx: TMtx): TMtx;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: function FlipVer: TMtx;

Flips the matrix elements vertically

Result: stored in self (calling object), returns self for chaining

Remarks:

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

Examples
var  A,B: Matrix;
begin
    A.SetIt(2,2,False,[1,2,
        2,4]);  // 2x2, not complex matrix
    B.FlipVert(A);
    // B becomes:
    // [2,4]
    // [1,2]
end;
See Also: Matrix.FlipHor

Overload 2: function FlipVer(const SrcMtx: TMtx): TMtx;

Flip all SrcMtx matrix elements vertically and store the results in the calling matrix. The flip operation is performed on all SrcMtx matrix columns.

#NameTypeDescription
1SrcMtxTMtx

Result: stored in self (calling object), returns self for chaining

Remarks:

The Matrix.Rows, Matrix.Cols and Matrix.Complex properties of callign matrix are adjusted automatically.