First time here? Check out the FAQ!
answered 2012-08-03 23:50:26 +0100
Hi,
If M1 is your first matrix (of dimension n1) and M2 is your second matrix (of dimension n2), then the answer should be:
M1.tensor_product(identity_matrix(n2)) + identity_matrix(n1).tensor_product(M2)
Vincent