FLINT3.7.0-dev

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)source

Brings 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).