(&mut self)
| 1015 | |
| 1016 | #[inline] |
| 1017 | pub fn transpose(&mut self) -> &mut Self |
| 1018 | where |
| 1019 | T: Copy + Default, |
| 1020 | { |
| 1021 | static_assert_square::<ROWS, COLS>(); |
| 1022 | for r in 0..ROWS { |
| 1023 | for c in (r + 1)..COLS { |
| 1024 | let tmp = self.0[r][c]; |
| 1025 | self.0[r][c] = self.0[c][r]; |
| 1026 | self.0[c][r] = tmp; |
| 1027 | } |
| 1028 | } |
| 1029 | self |
| 1030 | } |
| 1031 | |
| 1032 | #[inline] |
| 1033 | pub fn mul_generic<const K: usize>(self, rhs: Matrix<COLS, K, T>) -> Matrix<ROWS, K, T> |
no outgoing calls
no test coverage detected