Skip to content

Commit

Permalink
Merge pull request flintlib#1539 from flintlib/mpolycov
Browse files Browse the repository at this point in the history
try to reach some untested code in fq_nmod_mpoly_factor
  • Loading branch information
fredrik-johansson authored Oct 18, 2023
2 parents 10859ab + d249e5d commit f0969a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/fq_nmod_mpoly_factor/factor.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ static int _factor_irred_compressed(

fq_nmod_mpoly_get_n_fq_bpoly(Ab, A, perm[0], perm[1], ctx);
success = n_fq_bpoly_factor_smprime(c, Abf, Ab, 1, ctx->fqctx);

if (!success)
{
fq_nmod_mpoly_get_n_fq_bpoly(Ab, A, perm[0], perm[1], ctx);
Expand Down
8 changes: 6 additions & 2 deletions src/fq_nmod_mpoly_factor/test/t-factor.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void check_omega(slong lower, slong upper, const fq_nmod_mpoly_t p, const fq_nmo
int
main(void)
{
slong i, j, tmul = 20;
slong i, j, tmul = 40;
FLINT_TEST_INIT(state);

flint_printf("factor....");
Expand All @@ -96,7 +96,11 @@ main(void)
slong n, nfacs, len;
ulong expbound, powbound, pow;

fq_nmod_mpoly_ctx_init_rand(ctx, state, 7, FLINT_BITS, 4);
if (i % 2 == 0)
fq_nmod_mpoly_ctx_init_rand(ctx, state, 7, 1 + n_randint(state, FLINT_BITS), 4);
else
fq_nmod_mpoly_ctx_init_rand(ctx, state, 2, 3, 1);

fq_nmod_mpoly_init(a, ctx);
fq_nmod_mpoly_init(t, ctx);

Expand Down

0 comments on commit f0969a6

Please sign in to comment.