From 36cdfed2d8aefc7f51c305c98648a6f0223fa52c Mon Sep 17 00:00:00 2001 From: Pete Looney Date: Mon, 12 Oct 2020 17:17:58 -0500 Subject: [PATCH] added more comments --- Maths/MatrixMultiplication.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Maths/MatrixMultiplication.js b/Maths/MatrixMultiplication.js index f3f7dc120..54ec2cd33 100644 --- a/Maths/MatrixMultiplication.js +++ b/Maths/MatrixMultiplication.js @@ -1,5 +1,9 @@ // Wikipedia URL for General Matrix Multiplication Concepts: https://en.wikipedia.org/wiki/Matrix_multiplication +// 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. +// 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 +// 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]. + // MatrixCheck tests to see if all of the rows of the matrix inputted have similar size columns const matrixCheck = (matrix) => { let columnNumb