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

 


MatTrace

Computes the trace of a matrix.

Syntax:

t := MatTrace(M);

element of the ring the matrix elements come from
  t  
matrix
  M  

Description:

no detailed description available yet


Example:

Compute the trace of the integer matrix \left(\begin{array}{cc} 1 & 1 2 & 2 \end{array}right).

kash> M := Mat(Z,[[1,1],[2,2]]);
[1 1]
[2 2]
kash> MatTrace(M);
> 3


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