(&mut self, idx1: usize, idx2: usize, shape: Shape)
| 2259 | } |
| 2260 | |
| 2261 | unsafe fn swap(&mut self, idx1: usize, idx2: usize, shape: Shape) { |
| 2262 | match shape { |
| 2263 | Shape::Col => swap_vec_ptr(&mut self.col_mut(idx1), &mut self.col_mut(idx2)), |
| 2264 | Shape::Row => swap_vec_ptr(&mut self.row_mut(idx1), &mut self.row_mut(idx2)), |
| 2265 | } |
| 2266 | } |
| 2267 | |
| 2268 | unsafe fn swap_with_perm(&mut self, p: &[(usize, usize)], shape: Shape) { |
| 2269 | for (i, j) in p.iter() { |
no test coverage detected