How to create a matrix of lists?
In numpy, you can create a matrix with dtype=object (instead of the usual int or float). This can be used to store empty lists, to which you can then append.
I need to create a matrix MxN where every element of the matrix is a list of integers. I need a list so that I can append new elements as I go, therefore a 3D matrix would not work here.
I'm not sure if what I need here would actually be a list of lists.