Ask Your Question

Revision history [back]

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