D.3.2.6 diag_test
.................
Procedure from library linalg.lib (see linalg_lib).

Usage:
diag_test(A); A = const square matrix

Return:
int, 1 if A is diagonalisable, 0 if not

-1 no statement is possible, since A does not split.

Note:
The test works only for split matrices, i.e if eigenvalues of A
are in the ground field.

Does not work with parameters (uses factorize,gcd).

Example:
LIB "linalg.lib";
ring r=0,(x),dp;
matrix A[4][4]=6,0,0,0,0,0,6,0,0,6,0,0,0,0,0,6;
print(A);
diag_test(A);

<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
