Jan-11-2020, 03:16 PM

Hi, I'm having problems so I hope someone can help. I have two matrices (2d numpy arrays) and I need to make third one by overlapping first two matrices so that result is tuples. So, if first one is M=np.array([[1,2],[5,4]]) and second one N=np.array([[2,6],[9,7]]), third should be (1,2),(2,6) in first row, and (5,9),(4,7) in second row. How can I do that?