(self)
| 1001 | |
| 1002 | #[inline] |
| 1003 | pub fn transposed(self) -> Matrix<COLS, ROWS, T> |
| 1004 | where |
| 1005 | T: Copy + Default, |
| 1006 | { |
| 1007 | let mut out = [[T::default(); ROWS]; COLS]; |
| 1008 | for (r, row) in self.0.iter().enumerate() { |
| 1009 | for (c, value) in row.iter().enumerate() { |
| 1010 | out[c][r] = *value; |
| 1011 | } |
| 1012 | } |
| 1013 | Matrix(out) |
| 1014 | } |
| 1015 | |
| 1016 | #[inline] |
| 1017 | pub fn transpose(&mut self) -> &mut Self |
no test coverage detected