I want to make a 2x2 matrix
T = [[A, B],
[C, D]]
where each element A,B,C,D is an array (of same size, of course). Is this possible?
I would like to be able to multiply these matrix, for example multiplying two matrix T1 and T2 should give me
T1*T2 = [[A1*A2, B1*B2],
[C1*C2, D1*D2]]
which is still a matrix of arrays of the same size. Is there such a multiplication function?
And also, if I multiply T with a normal scalar matrix t = [[a,b],[c,d]] where a,b,c,d are scalar numbers, the the multiplication should give me
t*T = [[a*A, b*B],
[c*C, d*D]]
How can I do this? An example or a link to related material would be great.