ApCoCoA-1:LinBox.Det: Difference between revisions

From ApCoCoAWiki
Skaspar (talk | contribs)
Created the page
Skaspar (talk | contribs)
Short description update.
Line 1: Line 1:
<command>
<command>
<title>LinBox.Det</title>
<title>LinBox.Det</title>
<short_description>the determinant of a matrix</short_description>
<short_description>Compute the determinant of a matrix.</short_description>
<syntax>
<syntax>
LinBox.Det(M:MAT)
LinBox.Det(M:MAT)

Revision as of 16:34, 21 April 2009

LinBox.Det

Compute the determinant of a matrix.

Syntax

LinBox.Det(M:MAT)

the resulting type depends on the entries of the matrix.

Description

This function returns the determinant of the square matrix M computed by the ApCoCoAServer using LinBox functions. Please note that in contrary to the built in CoCoA Det function the entries of M are only allowed to be of type RAT, INT or ZMOD. The resulting type depends on the types of the entries of the matrix.

Example

Use R ::= Q[x];
LinBox.Det(Mat([[1,2],[0,5]]));
-- CoCoAServer: computing Cpu Time = 0
-------------------------------
5
-------------------------------

Use Z[x];
LinBox.Det(Mat([[1,2],[1,4]]));
-- WARNING: Coeffs are not in a field
-- GBasis-related computations could fail to terminate or be wrong

-------------------------------
-- WARNING: Coeffs are not in a field
-- GBasis-related computations could fail to terminate or be wrong
-- CoCoAServer: computing Cpu Time = 0
-------------------------------
2
-------------------------------

Det