_fmpz_mod_poly_hgcd
Synopsis
#include <flint/fmpz_mod_poly.h>slong _fmpz_mod_poly_hgcd(fmpz ** M, slong * lenM, fmpz * A, slong * lenA, fmpz * B, slong * lenB, const fmpz * a, slong lena, const fmpz * b, slong lenb, const fmpz_mod_ctx_t ctx)sourceOne step of the half-GCD algorithm (_gr_poly_hgcd): for , computes the matrix (the entries M[0], ..., M[3] with lengths lenM[0], ..., lenM[3], each with space for lena coefficients) and the two consecutive remainders , of the Euclidean remainder sequence of that straddle half the degree of , such that , and returns the sign . and need space for lena and lenb coefficients; their lengths are returned in *lenA, *lenB. See Half-GCD.
Cite this page
The FLINT team, “_fmpz_mod_poly_hgcd (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_hgcd.html (generated 2026-11-02).
@misc{flint-doc-fmpz-mod-poly-fmpz-mod-poly-hgcd,
author = {{The FLINT team}},
title = {{\_fmpz\_mod\_poly\_hgcd (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_poly_hgcd.html},
note = {Generated 2026-11-02}
}