As the title says, I am using numpy and would like to have a (n,1) dimensional vector where each individual element is in fact a matrix.
I have found this answer: Matrix of matrices in python . Based on that post I tried writing the following code:
A,B,C = (np.full((3,3),k) for k in range(3))
D=np.block([[A],[B]])
print(D)
D[1]
However, this does not give me the array A, but instead gives me the first row of array A.
So, is there some way of doing this in numpy?
Thanks