Hi,

I have a 2D double array and I want to subtract from the first column a value,
is this possible with matrix operation in D?

```
void main()
{
    double[][] data = [[0.0, 1.4], [1.0, 5.2], [2.0, 0.8]];

    // subtract -2.0 from the first column for every value

    // Expected output
    // data = [[-2.0, 1.4], [-1.0, 5.2], [0.0, 0.8]];

}
```

Kind regards
André


Reply via email to