up previous next
TensorMat

returns the tensor product of two matrices

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

Description
This function returns the tensor product of two matrices.

Example
/**/  use R ::= QQ[x,y,z,w];
/**/  TensorMat(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]])