← LibraryDeterminant Computation StrategiesEngineering · MathematicsLesson 233/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JogindeterminantHadamard boundmodular determinantBareiss

Linear Algebra Algorithms

Determinant Computation Strategies

Computing exact determinants by fraction-free elimination, modular methods with Hadamard bounds, and how to choose between them.

Engineering / MathematicsLinear Algebra Algorithms2 min readKV-MATH-0531

The determinant is needed for discriminants, lattice volumes and index computations. Computing it exactly is a good illustration of the tension between operation count and coefficient growth.

Three strategies

Determinant computation strategies
StrategyApproachBest when
Fraction-free eliminationBareiss; the final pivot is the determinantSmall matrices, moderate entries
Modular with CRTCompute modulo several primes, reconstructLarger matrices; entries bounded by Hadamard
Characteristic polynomialConstant term of the characteristic polynomialWhen the polynomial is wanted anyway

The Hadamard bound

Modular reconstruction needs to know in advance how many primes are required. Hadamard's inequality bounds the determinant by the product of the Euclidean norms of the rows.

|det A| <= product over rows of ||row_i||_2Doubling this bound accounts for the sign in signed reconstruction.

The modular method

Modular determinant computation

  1. BoundCompute the Hadamard bound and double it.
  2. Choose primesSelect primes whose product exceeds the bound.
  3. Reduce and eliminateCompute the determinant modulo each prime by ordinary elimination — no growth.
  4. ReconstructApply CRT and map to the signed range.

Singular and unlucky cases

Applications

Determinants appear as the discriminant of an order, via the discriminant computation; as the volume of a lattice, via the lattice determinant; and as the index of one module in another, which is how maximality is verified in the Round 2 algorithm.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 2.2.3. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Gaussian Elimination over Finite FieldsArticle · MathematicsNEXT LESSON →The Characteristic Polynomial and the Hessenberg MethodArticle · MathematicsGaussian Elimination and Linear SystemsArticle · MathematicsKernel and Image of a General MatrixArticle · Mathematics