Imagine we have an array with 100 elements. we want to turn it into a 2x2 matrix which every sub-matrix is a 5x5 matrix itself. I've write it to this level:
import numpy as np
M = np.linspace(1,100,100)
MUL = M[0:25].reshape([5,5])
MUR = M[25:50].reshape([5,5])
MLL = M[50:75].reshape([5,5])
MLR = M[75:101].reshape([5,5])
Now I have my 5x5 sub-matrix, how can I turn them into a 2x2 matrix?
Thanks in advance ^^