Does GAUSS have a function to calculate the Kronecker product?

User ForumDoes GAUSS have a function to calculate the Kronecker product?
aptech Staff asked 4 years ago

I have looked through the GAUSS command reference, but cannot find a function to calculate the Kronecker product of two matrices. Is there a function for this?

1 Answers
aptech Staff answered 4 years ago

In GAUSS you can calculate the Kronecker product with the .*. operator like this:

A = rndn(3, 3);
B = eye(3);
C = A .*. B;

Now 'C' will be the Kronecker product of 'A' and 'B'.