22#if defined(HAVE_NTL) || defined(HAVE_FLINT)
30 nmod_poly_t Irredpoly;
32 nmod_poly_randtest_monic_irreducible(Irredpoly,
FLINTrandom,
i+1);
35 #elif defined(HAVE_NTL)
42 BuildIrred (NTLirredpoly,
i);
64 for (
i = deg-1;
i >= 0;
i-- )
66 }
while ( ! is_irreducible(
result ) );
CanonicalForm convertnmod_poly_t2FacCF(const nmod_poly_t poly, const Variable &x)
conversion of a FLINT poly over Z/p to CanonicalForm
This file defines functions for conversion to FLINT (www.flintlib.org) and back.
CanonicalForm convertNTLzzpX2CF(const zz_pX &poly, const Variable &x)
Conversion to and from NTL.
declarations of higher level algorithms.
CFFList FACTORY_PUBLIC factorize(const CanonicalForm &f, bool issqrfree=false)
factorization over or
CanonicalForm randomIrredpoly(int i, const Variable &x)
computes a random monic irreducible univariate polynomial in x over Fp of degree i via NTL/FLINT
CanonicalForm find_irreducible(int deg, CFRandom &gen, const Variable &x)
generate a random irreducible polynomial in x of degree deg
GLOBAL_VAR flint_rand_t FLINTrandom
generate random integers, random elements of finite fields
VAR void(* factoryError)(const char *s)
virtual class for random element generation
virtual CanonicalForm generate() const
factory's class for variables
nmod_poly_init(FLINTmipo, getCharacteristic())
nmod_poly_clear(FLINTmipo)