Vertical Matrix Flip

Mirror a matrix along its horizontal axis by reversing the order of its rows.

Description

Mirror a rectangular matrix from top to bottom by reversing its row order.

A vertical matrix flip mirrors grid data across its horizontal centerline. It is useful for image rows, coordinate grids, board states, and any matrix whose top-to-bottom orientation needs to be reversed.

When to use Vertical Matrix Flip

  • Mirror pixel or tile values top to bottom
  • Convert between top-origin and bottom-origin row order
  • Prepare a vertically reflected board or kernel

How the calculation works

The calculator copies the outer row array in reverse order while leaving the values inside each row in their original order. The first row becomes the last, and the last row becomes the first.

Interpreting the result

The result has the same dimensions as the source. Applying the vertical flip twice reconstructs the original matrix. A one-row matrix is unchanged.

Important limitations

  • The input must be non-empty and rectangular.
  • The operation reverses rows only; it does not reverse columns, transpose, or rotate.
Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies