How to create an array of matrices in python?
In MATLAB, I do something like this:
for i = 1:n
a{i} = f(i)
end
where f(i) is a function that returns a random matrix of fixed size.
In python, I am working with numpy but I do not understand how to do this.
import numpy as np
a = np.array([])
for i in range(0, n):
# a.insert(i, f(i)) and does not work
# a[i] = f(i) and does not work
fin advance?f.