CoCoA:TensorMat

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TensorMat

returns the tensor product of two matrices

Description

This function returns the tensor product of two matrices.

Example

  Use R ::= Q[x,y,z,w];
  TensorMat(Mat([[1,-1],[2,-2],[3,-3]]),Mat([[x,y],[z,w]]));
Mat([
  [x, y, -x, -y],
  [z, w, -z, -w],
  [2x, 2y, -2x, -2y],
  [2z, 2w, -2z, -2w],
  [3x, 3y, -3x, -3y],
  [3z, 3w, -3z, -3w]
])
-------------------------------

Syntax

TensorMat(M:Mat, N:Mat):MAT
   <type>matrix</type>