diff options
| author | BensProgramma <[email protected]> | 2021-12-01 20:54:21 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-01 20:54:21 -0800 |
| commit | feb89ca0bdefe1f04557f65cd50ba4f55379b4b1 (patch) | |
| tree | b13f2a074ab986ac1de812ac265dd9998e66a643 | |
| parent | 2nd method of multiplication algorithm (diff) | |
| download | project_3_hernandez_schroeder-feb89ca0bdefe1f04557f65cd50ba4f55379b4b1.tar.xz project_3_hernandez_schroeder-feb89ca0bdefe1f04557f65cd50ba4f55379b4b1.zip | |
2nd method matrix multiplication
| -rw-r--r-- | Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp b/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp index c56c076..b918822 100644 --- a/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp +++ b/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp @@ -228,13 +228,7 @@ void multiplyMatrices(float MatrixA[3][3], float MatrixB[3][3], float MatrixC[3] MatrixC[2][2] = (MatrixA[2][0] * MatrixB[0][2]) + (MatrixA[2][1] * MatrixB[1][2]) + (MatrixA[2][2] * MatrixB[2][2]); */ - // Another way to do Matrix multiplication - for (int i = 0; i < 3; ++i) - for (int j = 0; j < 3; ++j) - { - MatrixC[i][j] = 0; - } - + // Another way to do Matrix multiplication for (int i = 0; i < 3; ++i) for (int j = 0; j < 3; ++j) for (int k = 0; k < 3; ++k) |