FLINT3.7.0-dev

NMOD_MAT_OPTIMAL_MODULUS_BITS

Synopsis#include <flint/nmod_mat.h>
NMOD_MAT_OPTIMAL_MODULUS_BITSsource

A suggested bit size, FLINT_BITS - 5, for the primes of multimodular algorithms that rely on matrix multiplication, used for example by fmpz_mat_mul_multi_mod and the Dixon solver of fmpz_mat. It was chosen when classical multiplication with two-word dot products was the fastest method; with the SIMD kernels, primes of at most 52 bits can be cheaper per bit of modulus.

Guides#

Cite this page

The FLINT team, “NMOD_MAT_OPTIMAL_MODULUS_BITS (nmod_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_mat/NMOD_MAT_OPTIMAL_MODULUS_BITS.html (generated 2026-10-20).