Matrix multiplication with arrays
In this question you will verify that the numpy.ndarray matrix
multiplication operator, @, does a proper matrix multiplcation. To
do this, first write a function, mat_mult(a1, a2) that creates a
new 2d array of zeros, and using nested for loops, fill in the
elements of the matrix multiplication, and return this new
array.
Then, write a second function, matrix_diff(b, c) that takes two
arrays as arguments then generates and returns the following
ratio:
sqrt((∑(??,?−??,?)^2)/(∑(??,?+??,?)^2))
This function...