36 ASSERT( 0,
"illegal type" );
46 mpz_init_set_si(
result, 1 );
56 ASSERT( 0,
"illegal type" );
63 return ((intptr_t)ff) >>2;
#define ASSERT(expression, message)
Interface to generate InternalCF's over various domains from intrinsic types or mpz_t's.
static InternalCF * basic(int value)
static InternalCF * rational(long num, long den)
virtual class for internal CanonicalForm's
virtual int levelcoeff() const
static mpz_ptr MPI(const InternalCF *const c)
MPI() - return underlying mpz_t of ācā.
static mpz_ptr MPQDEN(const InternalCF *const c)
static mpz_ptr MPQNUM(const InternalCF *const c)
operations on immediates, that is elements of F_p, GF, Z, Q that fit into intrinsic int,...
InternalCF * int2imm_gf(long i)
Factory's internal CanonicalForm's.
Factory's internal integers.
Factory's internal rationals.
CanonicalForm make_cf(const mpz_ptr n)
void gmp_denominator(const CanonicalForm &f, mpz_ptr result)
CanonicalForm make_cf_from_gf(const int z)
int gf_value(const CanonicalForm &f)
void gmp_numerator(const CanonicalForm &f, mpz_ptr result)
helper functions for conversion to and from Singular
static poly normalize(poly next_p, ideal add_generators, syStrategy syzstr, int *g_l, int *p_l, int crit_comp)