Skip to content

Commit 06c9515

Browse files
Wrap _gr_poly_divexact in gr/polynomial
1 parent 05f5891 commit 06c9515

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gr/polynomial.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,12 @@ polynomial_div(gr_poly_t res, const gr_poly_t x, const gr_poly_t y, const gr_ctx
559559
}
560560
}
561561

562+
int
563+
polynomial_divexact(gr_poly_t res, const gr_poly_t x, const gr_poly_t y, const gr_ctx_t ctx)
564+
{
565+
return gr_poly_divexact(res, x, y, POLYNOMIAL_ELEM_CTX(ctx));
566+
}
567+
562568
int
563569
polynomial_euclidean_div(gr_poly_t res, const gr_poly_t x, const gr_poly_t y, const gr_ctx_t ctx)
564570
{
@@ -707,6 +713,7 @@ gr_method_tab_input _gr_poly_methods_input[] =
707713
{GR_METHOD_POW_SI, (gr_funcptr) polynomial_pow_si},
708714
{GR_METHOD_POW_FMPZ, (gr_funcptr) polynomial_pow_fmpz},
709715
{GR_METHOD_DIV, (gr_funcptr) polynomial_div},
716+
{GR_METHOD_DIVEXACT, (gr_funcptr) polynomial_divexact},
710717
{GR_METHOD_INV, (gr_funcptr) polynomial_inv},
711718

712719
{GR_METHOD_EUCLIDEAN_DIV, (gr_funcptr) polynomial_euclidean_div},

0 commit comments

Comments
 (0)