@@ -970,6 +970,15 @@ _gr_fmpz_poly_mullow(fmpz * res,
970970 return GR_SUCCESS ;
971971}
972972
973+ int
974+ _gr_fmpz_poly_divexact2 (fmpz * res ,
975+ const fmpz * poly1 , slong len1 ,
976+ const fmpz * poly2 , slong len2 , gr_ctx_t ctx )
977+ {
978+ _fmpz_poly_divexact (res , poly1 , len1 , poly2 , len2 );
979+ return GR_SUCCESS ;
980+ }
981+
973982/* defined in gr/fmpz_poly.c */
974983int _gr_fmpz_poly_factor (fmpz_poly_t c , gr_vec_t factors , gr_vec_t exponents , gr_srcptr x , int flags , gr_ctx_t ctx );
975984
@@ -1194,6 +1203,7 @@ gr_method_tab_input _fmpz_methods_input[] =
11941203 {GR_METHOD_VEC_DOT , (gr_funcptr ) _gr_fmpz_vec_dot },
11951204 {GR_METHOD_VEC_DOT_REV , (gr_funcptr ) _gr_fmpz_vec_dot_rev },
11961205 {GR_METHOD_POLY_MULLOW , (gr_funcptr ) _gr_fmpz_poly_mullow },
1206+ {GR_METHOD_POLY_DIVEXACT , (gr_funcptr ) _gr_fmpz_poly_divexact2 },
11971207 {GR_METHOD_POLY_FACTOR , (gr_funcptr ) _gr_fmpz_poly_factor },
11981208 {GR_METHOD_POLY_ROOTS , (gr_funcptr ) _gr_fmpz_roots_gr_poly },
11991209 {GR_METHOD_POLY_ROOTS_OTHER ,(gr_funcptr ) _gr_fmpz_roots_gr_poly_other },
0 commit comments