(self, rhs: Matrix<COLS, K, f32>)
| 1287 | |
| 1288 | #[inline] |
| 1289 | pub fn mul_f32<const K: usize>(self, rhs: Matrix<COLS, K, f32>) -> Matrix<ROWS, K, f32> { |
| 1290 | if ROWS == 2 && COLS == 2 && K == 2 { |
| 1291 | return Matrix(matrix_from_rows_2( |
| 1292 | (Matrix2::from_rows(matrix_rows_2(self.0)) |
| 1293 | * Matrix2::from_rows(matrix_rows_2(rhs.0))) |
| 1294 | .to_rows(), |
| 1295 | )); |
| 1296 | } |
| 1297 | if ROWS == 3 && COLS == 3 && K == 3 { |
| 1298 | return Matrix(matrix_from_rows_3( |
| 1299 | (Matrix3::from_rows(matrix_rows_3(self.0)) |
| 1300 | * Matrix3::from_rows(matrix_rows_3(rhs.0))) |
| 1301 | .to_rows(), |
| 1302 | )); |
| 1303 | } |
| 1304 | if ROWS == 4 && COLS == 4 && K == 4 { |
| 1305 | return Matrix(matrix_from_rows_4( |
| 1306 | (Matrix4::from_rows(matrix_rows_4(self.0)) |
| 1307 | * Matrix4::from_rows(matrix_rows_4(rhs.0))) |
| 1308 | .to_rows(), |
| 1309 | )); |
| 1310 | } |
| 1311 | |
| 1312 | self.mul_f32_transposed(rhs) |
| 1313 | } |
| 1314 | |
| 1315 | #[inline] |
| 1316 | pub fn mul_f32_transposed<const K: usize>( |
no test coverage detected