Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add nmod to the factor union
  • Loading branch information
tthsqe12 committed Dec 7, 2021
1 parent 75f95ee commit 4cc1eb0
Show file tree
Hide file tree
Showing 4 changed files with 374 additions and 204 deletions.
6 changes: 3 additions & 3 deletions fq_default_mat/test/t-inlines.c
Expand Up @@ -29,7 +29,7 @@ int main(void)
fq_default_ctx_t ctx;
fq_default_t t;
fq_default_mat_t a, b, c, d, e, f, g;
slong n = n_randinit(state, 4) + 1;
slong n = n_randint(state, 4) + 1;

fmpz_init(p);
fmpz_randprime(p, state, n_randint(state, 2) ? 60 : 120, 1);
Expand Down Expand Up @@ -58,14 +58,14 @@ int main(void)
fq_default_mat_mul(f, a, c, ctx);
fq_default_mat_mul(g, b, c, ctx);
fq_default_mat_add(e, f, g, ctx);
TEST(fq_defaul_mat_equal(d, e, ctx));
TEST(fq_default_mat_equal(d, e, ctx));

fq_default_mat_sub(e, a, b, ctx);
fq_default_mat_mul(d, e, c, ctx);
fq_default_mat_mul(f, a, c, ctx);
fq_default_mat_mul(g, b, c, ctx);
fq_default_mat_sub(e, f, g, ctx);
TEST(fq_defaul_mat_equal(d, e, ctx));
TEST(fq_default_mat_equal(d, e, ctx));


fq_default_clear(t, ctx);
Expand Down

0 comments on commit 4cc1eb0

Please sign in to comment.