1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
Copyright (C) 2021 Fredrik Johansson
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. See <https://www.gnu.org/licenses/>.
*/
#include "test_helpers.h"
#include "fmpz_mpoly.h"
TEST_FUNCTION_START(fmpz_mpoly_symmetric, state)
{
slong iter;
/* todo; this does noting useful right now except verifying
that the function can be called */
for (iter = 0; iter < 1000 * 0.1 * flint_test_multiplier(); iter++)
{
fmpz_mpoly_ctx_t ctx;
fmpz_mpoly_t F;
slong nvars, n, k;
slong vars[10];
fmpz_mpoly_ctx_init_rand(ctx, state, 4);
nvars = ctx->minfo->nvars;
n = n_randint(state, nvars + 1);
for (k = 0; k < n; k++)
vars[k] = k;
k = n_randint(state, 5);
fmpz_mpoly_init(F, ctx);
fmpz_mpoly_symmetric_gens(F, k, vars, n, ctx);
fmpz_mpoly_clear(F, ctx);
fmpz_mpoly_ctx_clear(ctx);
}
TEST_FUNCTION_END(state);
}