帮忙看看,我这个矩阵乘法的函数为什么不对呗
```c++
double* Multiply(double* b, int row1, int col1) {
c = new double[row * col1];
*c = 0;
**
> ** if (col == row1) {
for (int i = 0;i < row;i++) {
for (int j = 0;j < col1;j++) {
for (int k = 0;k < col;k++) {
double x = *(c + i * col1 + j);
*(c + i * col1 + j) = x+(*(a + i * col + k))* (*(b + k * col1 + j));
}
}
}
}
else {
printf("数组维度不同");
}
col = col1;
return c;
}
```