0

I am having trouble devising a method to multiply 2 matricies that are formed by dynamic one dimensional arrays, for this case i just used matrix1 and matrix2

To access elements that are on rows 0 to n-1 in either matrix i have to use this method:

((rows - 1) x number of columns) + column number element is on - 1.

I have tried to implement this in a for loop, but i cant get the first row in matrix1 to multiply with the first columnof matrix2. I am having trouble grasping how i would code this for dynamic one dimensional arrays.