Function swap_rows

Source
pub fn swap_rows<F: Clone + Send + Sync>(
    mat: &mut RowMajorMatrix<F>,
    i: usize,
    j: usize,
)
Expand description

Swap two rows i and j in a RowMajorMatrix.

§Panics

Panics if the indices are out of bounds or not ordered as i < j.

§Arguments

  • mat: The matrix to modify.
  • i: The first row index (must be less than j).
  • j: The second row index.