[back] [prev] [next] [index] [root]

 


Mat

Creates a matrix.

Syntax:

M := Mat([S,] L);

matrix
  M  
ring
  S  
list
  L  

See also:  IsMat

Description:

Creates the matrix M over the coefficient ring S. L is a list of row vectors. If only a list L is given the function tries to extract a common coeffient ring from the entries.


Example:

Create the integer matrix \left(\begin{array}{cc} 1 & 2 3 & 4 \end{array}right).

kash> Mat(Z,[[1,2],[3,4]]);
> [1 2]
[3 4]


<- back[back] [prev] [next] [index] [root]