Macaulay2 Engine
Loading...
Searching...
No Matches

◆ determinant()

void ffpackInterface::determinant ( const DMatZZpFFPACK & A,
ZZpFFPACK::ElementType & result_det )
Note
1. matrix data (N) is modified by FFPACK

Definition at line 92 of file dmat.cpp.

93{
95 if (mat.numRows() == 0)
96 {
97 // 26 April 2014: this branch is needed as FFPACK gives answer of 0 in
98 // this case.
99 mat.ring().set_from_long(result_det, 1);
100 }
101 else
102 {
103 DMatZZpFFPACK N(mat);
105 result_det = FFPACK::Det(mat.ring().field(),
106 det,
107 mat.numRows(),
108 N.rowMajorArray(),
109 mat.numColumns());
110 }
111}
FieldType::Element ElementType
#define DMatZZpFFPACK

References DMatZZpFFPACK.

Referenced by DMatLinAlg< M2::ARingZZpFFPACK >::determinant().