up previous next
KroneckerProd    --    returns the Kronecker product of two matrices


Syntax
KroneckerProd(M: MATRIX, N: MATRIX): MAT

Description
This function returns the Kronecker (tensor) product of two matrices.

Example
/**/  use R ::= QQ[x,y,z,w];
/**/  KroneckerProd(mat(R, [[1,-1],[2,-2],[3,-3]]), mat(R, [[x,y],[z,w]]));
matrix( /*RingWithID(42, "QQ[x,y,z,w]")*/
 [[x,  y,  -x,  -y],
  [z,  w,  -z,  -w],
  [2*x,  2*y,  -2*x,  -2*y],
  [2*z,  2*w,  -2*z,  -2*w],
  [3*x,  3*y,  -3*x,  -3*y],
  [3*z,  3*w,  -3*z,  -3*w]])