fmpz_mod_berlekamp_massey_reduce
Synopsis
#include <flint/fmpz_mod_poly.h>int fmpz_mod_berlekamp_massey_reduce(fmpz_mod_berlekamp_massey_t B, const fmpz_mod_ctx_t ctx)sourceBrings V and R up to date with the points added so far and returns 1 if V changed, 0 otherwise. For example, after the points 1, 1, 2, 3 the call returns 1 with \deg R < \deg V = 2, since the Fibonacci recurrence has been recognised; after adding 5, 8 another call returns 0.
Cite this page
The FLINT team, “fmpz_mod_berlekamp_massey_reduce (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_berlekamp_massey_reduce.html (generated 2026-10-20).
@misc{flint-doc-fmpz-mod-poly-fmpz-mod-berlekamp-massey-reduce,
author = {{The FLINT team}},
title = {{fmpz\_mod\_berlekamp\_massey\_reduce (fmpz\_mod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mod_poly/fmpz_mod_berlekamp_massey_reduce.html},
note = {Generated 2026-10-20}
}