10 #include "factory/factory.h" 64 gcp cc=(gcp)
omalloc(
sizeof(*cc));
74 gcp cc=(gcp)
omalloc(
sizeof(*cc));
84 gcp cc=(gcp)
omalloc(
sizeof(*cc));
94 gcp cc=(gcp)
omalloc(
sizeof(*cc));
104 gcp cc=(gcp)
omalloc(
sizeof(*cc));
114 gcp cc=(gcp)
omalloc(
sizeof(*cc));
122 gcp cc=(gcp)
omalloc(
sizeof(*cc));
130 gcp cc=(gcp)
omalloc(
sizeof(*cc));
143 printf(
"gSize: %d, %d\n",s1,s2);
154 printf(
"gInt: %ld, %ld\n",s1,s2);
163 if(mpz_cmp(result,r2)!=0)
179 gcp cc=(gcp)
omalloc(
sizeof(*cc));
187 gcp cc=(gcp)
omalloc(
sizeof(*cc));
195 gcp cc=(gcp)
omalloc(
sizeof(*cc));
203 gcp cc=(gcp)
omalloc(
sizeof(*cc));
220 gcp cc=(gcp)
omalloc(
sizeof(*cc));
223 mpz_ptr tt=(mpz_ptr)tmp;
243 printf(
"gGreater\n");
300 printf(
"gGreaterZero\n");
307 gcp cc=(gcp)
omalloc(
sizeof(*cc));
316 gcp cc=(gcp)
omalloc(
sizeof(*cc));
325 gcp cc=(gcp)
omalloc(
sizeof(*cc));
333 gcp cc=(gcp)
omalloc(
sizeof(*cc));
341 gcp cc=(gcp)
omalloc(
sizeof(*cc));
348 printf(
"gQuotRem\n");
355 gcp cc=(gcp)
omalloc(
sizeof(*cc));
364 gcp cc=(gcp)
omalloc(
sizeof(*cc));
387 printf(
"gWriteFd\n");
397 gcp cc=(gcp)
omalloc(
sizeof(*cc));
404 printf(
"gChineseREmainder\n");
420 printf(
"gDivBy:%d,%d\n",b1,b2);
428 gcp cc=(gcp)
omalloc(
sizeof(*cc));
429 gcp ss=(gcp)
omalloc(
sizeof(*ss));
430 gcp tt=(gcp)
omalloc(
sizeof(*ss));
438 gcp cc=(gcp)
omalloc(
sizeof(*cc));
450 printf(
"gIsUnit:%d,%d\n",b1,b2);
462 printf(
"gDivComp:%d,%d\n",i1,i2);
469 printf(
"NULL in %s:%d\n",f,l);
const CanonicalForm int s
static void gCoeffWrite(const coeffs r, BOOLEAN b)
char * gCoeffName(const coeffs r)
void rem(unsigned long *a, unsigned long *q, unsigned long p, int °a, int degq)
char * gCoeffString(const coeffs r)
static void gDelete(number *a, const coeffs r)
static BOOLEAN gGreaterZero(number a, const coeffs r)
static int gSize(number a, const coeffs)
static number gInitMPZ(mpz_t i, const coeffs cf)
static number gAdd(number a, number b, const coeffs cf)
static number gGetUnit(number n, const coeffs r)
static number gDiv(number a, number b, const coeffs cf)
static void gPower(number a, int i, number *result, const coeffs r)
static BOOLEAN gIsZero(number a, const coeffs r)
static BOOLEAN gIsOne(number a, const coeffs r)
static BOOLEAN gGreater(number a, number b, const coeffs r)
static void gNormalize(number &a, const coeffs r)
static number gReadFd(s_buff f, const coeffs r)
static number gNormalizeHelper(number a, number b, const coeffs r)
static number gIntMod(number a, number b, const coeffs cf)
static number gInvers(number a, const coeffs r)
static number gExtGcd(number a, number b, number *s, number *t, const coeffs)
static BOOLEAN gIsMOne(number a, const coeffs r)
static void gWriteLong(number a, const coeffs r)
static number gExactDiv(number a, number b, const coeffs cf)
static number gImPart(number a, const coeffs r)
Coefficient rings, fields and other domains suitable for Singular polynomials.
static number gRandom(siRandProc p, number p1, number p2, const coeffs cf)
static void gWriteFd(number a, FILE *f, const coeffs r)
static void gWriteShort(number a, const coeffs r)
static number gInpNeg(number a, const coeffs r)
The main handler for Singular numbers which are suitable for Singular polynomials.
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
static number gRePart(number a, const coeffs r)
static BOOLEAN gDBTest(number a, const char *f, const int l, const coeffs r)
#define n_Test(a, r)
BOOLEAN n_Test(number a, const coeffs r)
only used if HAVE_RINGS is defined
static int gDivComp(number a, number b, const coeffs r)
static number gFarey(number p, number n, const coeffs)
static number gQuotRem(number a, number b, number *rem, const coeffs r)
static number gGetNumerator(number &a, const coeffs)
static number gMult(number a, number b, const coeffs cf)
BOOLEAN gInitChar(coeffs r, void *p)
static number gSubringGcd(number a, number b, const coeffs)
static BOOLEAN gEqual(number a, number b, const coeffs r)
static nMapFunc gSetMap(const coeffs src, const coeffs dst)
static number gChineseRemainder(number *x, number *q, int rl, BOOLEAN sym, CFArray &inv_cache, const coeffs)
static BOOLEAN gIsUnit(number a, const coeffs)
static number gInit(long i, const coeffs cf)
static number gSub(number a, number b, const coeffs cf)
static number gCopy(number a, const coeffs r)
static const char * gRead(const char *s, number *a, const coeffs r)
static long gInt(number &a, const coeffs)
static number gLcm(number a, number b, const coeffs r)
static number gGetDenom(number &a, const coeffs)
static void gMPZ(mpz_t result, number &n, const coeffs r)
static number gGcd(number a, number b, const coeffs)
static BOOLEAN gDivBy(number a, number b, const coeffs)
coeffs nInitChar(n_coeffType t, void *parameter)
one-time initialisations for new coeffs in case of an error return NULL