Can the following be done with an '@'? Given a matrix with two columns (each a vector), and two vectors: values, and rows, can I append the values from the values vector to the first column, in the rows given by the row vector?
Start:
(1 1) (0 0)
(2 1) (0 0)
(3 1) (0 0)
(4 1) (0 0)
values←1 2 3 4
rows← 2 3 4 1
Result:
(1 1 4) (0 0)
(2 1 1) (0 0)
(3 1 2) (0 0)
(4 1 3) (0 0)