I have this 2 matrix:
x = np.matrix("1 2 3; 4 5 6")
y = np.matrix("7 8 9; 10 11 12")
...and I put them in a dictionary
d = {"a" : x, "b": y}
Now I want to extract the values of the matrix that have the same position together, like this: 1,7...2,8...3,9... and so on until 6,12 (expected output).
I only managed to do it manually, like this:
[value[0,0] for value in d.values()]
I´m trying to build a loop for this, but didn´t manage to do it.
Can someone give me a hand please?