FLINT3.7.0-dev

fq_nmod_cmp

Synopsis#include <flint/fq_nmod.h>
int fq_nmod_cmp(const fq_nmod_t a, const fq_nmod_t b, const fq_nmod_ctx_t ctx)source

Compares the representatives of a and b and returns -1, 0 or 1: a shorter representative is smaller, and representatives of the same length are compared coefficientwise from the constant term up. This is a total order for sorting, unrelated to the field structure.

Cite this page

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