2D matrix operation (subtraction)

jmh530 john.michael.hall at gmail.com
Fri Feb 21 17:15:34 UTC 2020


On Friday, 21 February 2020 at 14:43:37 UTC, jmh530 wrote:
> [snip]

Actually, I kind of prefer the relevant line as
x.byDim!1[0].each!"a -= 2";
which makes it a little clearer that you can easily change [0] to 
[1] to apply each to the second column instead.


More information about the Digitalmars-d-learn mailing list