mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-04 15:39:42 +08:00
added more comments
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user