I am trying to copy the data from `matrixA` to `matrixB` in the function `M`, but I got the error:

```
app.d(20): Error: function app.M (double[][] s, ref double[][] d, int row, int col) is not callable using argument types (double[5][5], double[][], int, int)

```

Code:

```
double matrixA[5][5] = [ [ 1.0, 2.0, 3.0, 4.0, 5.0 ],  
                         [ 1.0, 2.0, 3.0, 4.0, 5.0 ],  
                         [ 1.0, 2.0, 3.0, 4.0, 5.0 ],  
                         [ 1.0, 2.0, 3.0, 4.0, 5.0 ],  
                         [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ];
double matrixB[][];

void M(double[][] s, ref double[][] d, int row, int col)
{
    d.length = row;

    foreach (i; 0 .. d.length)  
        d[i].length = col;

    d = s;
}

void main()
{
    M(matrixA, matrixB, 5, 5);
}

```