Using Numpy, I would like to achieve the result below, given b and c. I have looked into stacking functions, but I cannot get it to work. Could someone please help?
import numpy as np
a=range(35,135)
b=np.reshape(a,(10,10))
c=np.array([[5,5],[5,6],[5,7],[6,5],[6,6],[6,7],[7,5],[7,6],[7,7]])
The result should look like this:
np.array([[5,5,90],[5,6,91],[5,7,92],[6,5,100],[6,6,101],[6,7,102],
[7,5,110],[7,6,111],[7,7,112]])
aandbhave to do with anything? Also, hy were the numbers90,91,100,101,102,110 ...chosen?cwhen viewed as two dimensional indices