[back] [prev] [next] [index] [root]
MatSmith
missing shortdoc
Syntax:
L := MatSmith(M);
Description:
Computes the Smith normal form and the rank of the integer
matrix M. The result is a list L which contains the
rank and the Smith normal form S of M.
Example:
Compute the Smith normal form of
\left(\begin{array}{ccc} 4 & 6 & 2 3 & 9 & 12
\end{array}right).
kash> M := Mat(Z,[[4,6,2],[3,9,12]]);
[ 4 6 2]
[ 3 9 12]
kash> L := MatSmith(M);;
kash> rank := L[1];
2
kash> S := L[2];
> [1 0 0]
[0 6 0]
<- back[back] [prev] [next] [index] [root]