FLINT3.7.0-dev

_nmod_poly_xgcd_euclidean, nmod_poly_xgcd_euclidean, _nmod_poly_xgcd_hgcd, nmod_poly_xgcd_hgcd

Synopsis#include <flint/nmod_poly.h>
slong _nmod_poly_xgcd_euclidean(nn_ptr res, nn_ptr s, nn_ptr t, nn_srcptr poly1, slong len1, nn_srcptr poly2, slong len2, nmod_t mod)source
void nmod_poly_xgcd_euclidean(nmod_poly_t G, nmod_poly_t S, nmod_poly_t T, const nmod_poly_t A, const nmod_poly_t B)source
slong _nmod_poly_xgcd_hgcd(nn_ptr G, nn_ptr S, nn_ptr T, nn_srcptr A, slong lenA, nn_srcptr B, slong lenB, nmod_t mod)source
void nmod_poly_xgcd_hgcd(nmod_poly_t G, nmod_poly_t S, nmod_poly_t T, const nmod_poly_t A, const nmod_poly_t B)source

The extended GCD by the Euclidean and by the half-GCD algorithm, with the conventions of _nmod_poly_xgcd and nmod_poly_xgcd.

Cite this page

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