I am basically trying to re-create numpy\'s reshape function. The user enters a list and a tuple. The tuple decides the dimension of the matrix.
My idea for finding t