Is there a way to multiply or add a scalar to the same row or column in each array of a nested array without a loop? For example I would like to multiply all the values in the 2nd column (or row) of each array by 2 for the sample nested array below.
(4 3)(5 3)(3 3)⍴¨⊂⍳15
┌────────┬────────┬─────┐
│ 1 2 3│ 1 2 3│1 2 3│
│ 4 5 6│ 4 5 6│4 5 6│
│ 7 8 9│ 7 8 9│7 8 9│
│10 11 12│10 11 12│ │
│ │13 14 15│ │
└────────┴────────┴─────┘