Matrix.FlipHor Method

Overload List

#SignatureDescription
1TMtx FlipHorFlips the matrix elements horizontally.
2TMtx FlipHor(TMtx SrcMtx)Flip all SrcMtx matrix elements horizontally and store the results in the calling matrix.

Overload 1: TMtx FlipHor

Flips the matrix elements horizontally.

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

Remarks:

Flip calling matrix elements horizontally - element [row, j] = element [row, Cols-j]. This operation is performed on all calling matrix rows.

Examples
Matrix A;
Matrix B;
A.SetIt(2,2,false,[1,2,
2,4]);  // 2x2, !complex matrix
B.FlipHor(A);
// B becomes:
// [2,1]
// [4,2]
See Also: Matrix.FlipVer

Overload 2: TMtx FlipHor(TMtx SrcMtx)

Flip all SrcMtx matrix elements horizontally and store the results in the calling matrix.

#NameTypeDescription
1SrcMtxTMtxsource TMtx

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

Remarks:

The flip operation is performed on all SrcMtx matrix rows. The Dew.Math.Matrix.Rows, Dew.Math.Matrix.Cols and Dew.Math.Matrix.Complex properties of callign matrix are adjusted automatically.