Skip to content

Commit 36cdfed

Browse files
committed
added more comments
1 parent 9301b11 commit 36cdfed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Maths/MatrixMultiplication.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// Wikipedia URL for General Matrix Multiplication Concepts: https://en.wikipedia.org/wiki/Matrix_multiplication
22

3+
// This algorithm has multiple functions that ultimately check if the inputs are actually matrices and if two Matrices (that can be different sizes) can be multiplied together.
4+
// If they can be, then the matrixMult function returns the product of the two matrices. I have included two test scenarios in the file. The first is the multiplication of two
5+
// matrices that are of the same size [2x2]x[2x2], and the second is the multiplication of two matrices that are not the same size [2x3]x[3x2].
6+
37
// MatrixCheck tests to see if all of the rows of the matrix inputted have similar size columns
48
const matrixCheck = (matrix) => {
59
let columnNumb

0 commit comments

Comments
 (0)