My Project
Loading...
Searching...
No Matches
Functions | Variables
generics.h File Reference

Go to the source code of this file.

Functions

BOOLEAN gInitChar (coeffs r, void *p)
 

Variables

EXTERN_VAR coeffs coeffs1
 
EXTERN_VAR coeffs coeffs2
 

Function Documentation

◆ gInitChar()

BOOLEAN gInitChar ( coeffs  r,
void *  p 
)

Definition at line 468 of file generics.cc.

469{
470 coeffs1=nInitChar(n_Z_1,(void*)1);
471 coeffs2=nInitChar(n_Z_2,(void*)1);
472 r->is_field=FALSE;
473 r->is_domain=TRUE;
474 r->rep=n_rep_unknown;
475 r->ch = 0;
476 r->cfKillChar=gKillChar;
477 //r->nCoeffIsEqual=gCoeffsEqual;
478 r->cfCoeffName=gCoeffName;
479 r->cfCoeffWrite=gCoeffWrite;
480
481 r->cfMult = gMult;
482 r->cfSub = gSub;
483 r->cfAdd = gAdd;
484 r->cfDiv = gDiv;
485 r->cfInit = gInit;
486 r->cfSize = gSize;
487 r->cfInt = gInt;
488 #ifdef HAVE_RINGS
489 r->cfDivComp = gDivComp;
490 r->cfIsUnit = gIsUnit;
491 r->cfGetUnit = gGetUnit;
492 r->cfExtGcd = gExtGcd;
493 r->cfDivBy = gDivBy;
494 #endif
495 r->cfInpNeg = gInpNeg;
496 r->cfInvers= gInvers;
497 r->cfCopy = gCopy;
498 r->cfRePart = gCopy;
499 //r->cfImPart = ndReturn0;
500 r->cfWriteLong = gWriteLong;
501 r->cfWriteShort = gWriteShort;
502 r->cfRead = gRead;
503 r->cfNormalize=gNormalize;
504 r->cfGreater = gGreater;
505 r->cfEqual = gEqual;
506 r->cfIsZero = gIsZero;
507 r->cfIsOne = gIsOne;
508 r->cfIsMOne = gIsMOne;
509 r->cfGreaterZero = gGreaterZero;
510 r->cfPower = gPower;
511 r->cfGetDenom = gGetDenom;
512 r->cfGetNumerator = gGetNumerator;
513 r->cfGcd = gGcd;
514 r->cfLcm = gGcd;
515 r->cfDelete= gDelete;
516 r->cfSetMap = gSetMap;
517 //r->cfInpMult=ndInpMult;
518 r->cfRandom=gRandom;
519 r->cfWriteFd=gWriteFd;
520 r->cfReadFd=gReadFd;
521 r->type=n_Z;
522 #ifdef LDEBUG
523 r->cfDBTest=gDBTest;
524 #endif
525 return FALSE;
526}
#define TRUE
Definition: auxiliary.h:100
#define FALSE
Definition: auxiliary.h:96
@ n_Z
only used if HAVE_RINGS is defined
Definition: coeffs.h:43
coeffs nInitChar(n_coeffType t, void *parameter)
one-time initialisations for new coeffs in case of an error return NULL
Definition: numbers.cc:413
@ n_rep_unknown
Definition: coeffs.h:109
static int gDivComp(number a, number b, const coeffs r)
Definition: generics.cc:450
static void gWriteFd(number a, FILE *f, const coeffs r)
Definition: generics.cc:381
static number gCopy(number a, const coeffs r)
Definition: generics.cc:180
static number gGcd(number a, number b, const coeffs)
Definition: generics.cc:308
static number gMult(number a, number b, const coeffs cf)
Definition: generics.cc:56
static BOOLEAN gIsMOne(number a, const coeffs r)
Definition: generics.cc:278
static void gWriteShort(number a, const coeffs r)
Definition: generics.cc:209
static BOOLEAN gDivBy(number a, number b, const coeffs)
Definition: generics.cc:408
static void gNormalize(number &a, const coeffs r)
Definition: generics.cc:225
static long gInt(number &a, const coeffs)
Definition: generics.cc:143
static number gAdd(number a, number b, const coeffs cf)
Definition: generics.cc:76
static BOOLEAN gIsUnit(number a, const coeffs)
Definition: generics.cc:439
static void gPower(number a, int i, number *result, const coeffs r)
Definition: generics.cc:300
static number gInpNeg(number a, const coeffs r)
Definition: generics.cc:165
VAR coeffs coeffs1
Definition: generics.cc:33
static BOOLEAN gGreaterZero(number a, const coeffs r)
Definition: generics.cc:289
static void gKillChar(coeffs r)
Definition: generics.cc:45
static number gGetUnit(number n, const coeffs r)
Definition: generics.cc:431
static number gInit(long i, const coeffs cf)
Definition: generics.cc:116
static void gCoeffWrite(const coeffs r, BOOLEAN b)
Definition: generics.cc:35
static number gGetDenom(number &a, const coeffs)
Definition: generics.cc:326
static BOOLEAN gEqual(number a, number b, const coeffs r)
Definition: generics.cc:243
static number gGetNumerator(number &a, const coeffs)
Definition: generics.cc:334
static number gRandom(siRandProc p, number p1, number p2, const coeffs cf)
Definition: generics.cc:403
static BOOLEAN gGreater(number a, number b, const coeffs r)
Definition: generics.cc:231
static number gExtGcd(number a, number b, number *s, number *t, const coeffs)
Definition: generics.cc:420
static void gWriteLong(number a, const coeffs r)
Definition: generics.cc:204
static BOOLEAN gDBTest(number a, const char *f, const int l, const coeffs r)
Definition: generics.cc:462
VAR coeffs coeffs2
Definition: generics.cc:33
static const char * gRead(const char *s, number *a, const coeffs r)
Definition: generics.cc:214
static number gReadFd(s_buff f, const coeffs r)
Definition: generics.cc:385
static nMapFunc gSetMap(const coeffs src, const coeffs dst)
Definition: generics.cc:376
static BOOLEAN gIsZero(number a, const coeffs r)
Definition: generics.cc:255
static char * gCoeffName(const coeffs r)
Definition: generics.cc:41
static number gInvers(number a, const coeffs r)
Definition: generics.cc:172
static void gDelete(number *a, const coeffs r)
Definition: generics.cc:365
static int gSize(number a, const coeffs)
Definition: generics.cc:132
static number gSub(number a, number b, const coeffs cf)
Definition: generics.cc:66
static number gDiv(number a, number b, const coeffs cf)
Definition: generics.cc:86
static BOOLEAN gIsOne(number a, const coeffs r)
Definition: generics.cc:267

Variable Documentation

◆ coeffs1

EXTERN_VAR coeffs coeffs1

Definition at line 1 of file generics.h.

◆ coeffs2

EXTERN_VAR coeffs coeffs2

Definition at line 1 of file generics.h.