I am preforming matrix multiplication;
void matrix_multiply(int m, int n, int k, double A[m][n], double B[n][k], double C[m][k]){
int i; // feeling like an i day
int v;
int q;
for(i = 0; i < m; i++){
for(v = 0; v < k; v++){
C[i][v] = 0; // clear any garbage
for(q = 0; q < n; q++){
C[i][v] += (A[i][q] * B[q][v]);
}
}
}
}```
of the following two 2d-arrays:
```c
double M1[3][3] = { {1, 2, 3},
{4, 5, 6},
{7, 8, 9} };
double M2[3][3] = { {1, 1, 1},
{0, 2, 2},
{0, 0, 3} };
And I get the following output: (see screenshot)
