Numpy turn hierarchy of matrices into concatenation
Advertisements I have the following 4 matrices: >>> a array([[0., 0.], [0., 0.]]) >>> b array([[1., 1.], [1., 1.]]) >>> c array([[2., 2.], [2., 2.]]) >>> d array([[3., 3.], [3., 3.]]) I’m creating another matrix that will contain them: >>> e = np.array([[a,b], [c,d]]) >>> e.shape (2, 2, 2, 2) I want to "cancel the… Read More Numpy turn hierarchy of matrices into concatenation