pub fn flip_ud(&mut self) {
        for r in 0..self.rows / 2 {
            for c in 0..self.columns {
                self.data
                    .swap(r * self.columns + c, (self.rows - 1 - r) * self.columns + c);
            }
        }
    }
/// Flip the matrix around the horizontal axis.
Flip the matrix around the horizontal axis.
Flip the matrix around the horizontal axis .
pub fn flip_ud(&mut self) {
        for r in 0..self.rows / 2 {
            for c in 0..self.columns {
                self.data
                    .swap(r * self.columns + c, (self.rows - 1 - r) * self.columns + c);
            }
        }
    }
pub fn flip_ud ( & mut self ) { for r in 0 .. self . rows / 2 { for c in 0 .. self . columns { self . data . swap ( r * self . columns + c , ( self . rows - 1 - r ) * self . columns + c ) ; } } }
Flip the matrix around the horizontal axis.
Flip the matrix around the horizontal axis .
&mut self
&mut self