I have two matrices:
a: (0.5 0.5; 0.3 0.7)
idx: ((0 0);(0 1);(1 1))
I want to use the idx as i and j pairs to get the values out of a. In longform, this would be:
a[0;0]
a[0;1]
a[1;1]
Currently, when I try to index it as a idx, it behaves as if I've entered a[0 0] etc.
What am I doing wrong?