2D matrix operation (subtraction)
    Andre Pany 
    andre at s-e-a-p.de
       
    Fri Feb 21 08:51:49 UTC 2020
    
    
  
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é
    
    
More information about the Digitalmars-d-learn
mailing list