FLINT3.7.0-dev

fmpz_mod_poly_fread

Synopsis#include <flint/fmpz_mod_poly.h>
int fmpz_mod_poly_fread(FILE * file, fmpz_mod_poly_t poly, fmpz_mod_ctx_t ctx)source

Reads a polynomial in the format of fmpz_mod_poly_fprint from file, sets the modulus of ctx to the modulus read (which must be at least 2) and poly to the polynomial, and returns 1 on success and 0 on failure.

Cite this page

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