Difference between revisions of "ApCoCoA-1:LinBox.Det"

From ApCoCoAWiki
(Example section update.)
(Description update.)
Line 1: Line 1:
 
<command>
 
<command>
<title>LinBox.Det</title>
+
  <title>LinBox.Det</title>
<short_description>Compute the determinant of a matrix.</short_description>
+
  <short_description>Compute the determinant of a matrix.</short_description>
<syntax>
+
  <syntax>LinBox.Det(M:MAT):RAT, INT or ZMOD</syntax>
LinBox.Det(M:MAT):RAT, INT or ZMOD
+
  <description>
</syntax>
 
<description>
 
 
This function returns the determinant of the square matrix <tt>M</tt> computed by the ApCoCoAServer using LinBox functions. Please note that in contrary to the built in CoCoA <tt>Det</tt> function the entries of <tt>M</tt> are only allowed to be of type RAT, INT or ZMOD. The resulting type depends on the types of the entries of the matrix.
 
This function returns the determinant of the square matrix <tt>M</tt> computed by the ApCoCoAServer using LinBox functions. Please note that in contrary to the built in CoCoA <tt>Det</tt> function the entries of <tt>M</tt> are only allowed to be of type RAT, INT or ZMOD. The resulting type depends on the types of the entries of the matrix.
 
<itemize>
 
<itemize>
Line 33: Line 31:
 
-------------------------------
 
-------------------------------
 
</example>
 
</example>
</description>
+
  </description>
<see>Det</see>
+
  <see>Det</see>
<types>
+
  <types>
  <type>matrix</type>
+
    <type>matrix</type>
  <type>apcocoaserver</type>
+
    <type>apcocoaserver</type>
</types>
+
  </types>
<key>Det</key>
+
  <key>Det</key>
<key>LinBox.Det</key>
+
  <key>LinBox.Det</key>
<key>linbox.Det</key>
+
  <key>linbox.Det</key>
<key>determinant</key>
+
  <key>determinant</key>
<wiki-category>Package_linbox</wiki-category>
+
  <wiki-category>Package_linbox</wiki-category>
 
</command>
 
</command>

Revision as of 11:49, 24 April 2009

LinBox.Det

Compute the determinant of a matrix.

Syntax

LinBox.Det(M:MAT):RAT, INT or ZMOD

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.

  • @param M A square matrix whose components are either of type INT, RAT or ZMOD.

  • @return The determinant of A.

Example

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

Example

Use ZZ[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