Functions
OPAEQ.h File Reference
#include <misc/auxiliary.h>

Go to the source code of this file.

Functions

BOOLEAN n_QAEInitChar (coeffs, void *)
 

Function Documentation

BOOLEAN n_QAEInitChar ( coeffs  ,
void *   
)

Definition at line 336 of file OPAEQ.cc.

337 {
338  // r->is_field,is_domain?
339  r->ch=0;
340  //r->cfKillChar=ndKillChar;
341  //r->nCoeffIsEqual=ndCoeffIsEqual;
342  r->cfMult = nAEQMult;
343  r->cfSub = nAEQSub;
344  r->cfAdd = nAEQAdd;
345  r->cfDiv = nAEQDiv;
346  r->cfIntMod= nAEQIntMod;
347  r->cfExactDiv= nAEQExactDiv;
348  r->cfInit = nAEQInit;
349  r->cfSize = nAEQSize;
350  r->cfInt = nAEQInt;
351  r->cfCoeffName = n_QAECoeffName;
352  r->cfCoeffString = n_QAECoeffString;
353 #ifdef HAVE_RINGS
354  //r->cfDivComp = NULL; // only for ring stuff
355  //r->cfIsUnit = NULL; // only for ring stuff
356  //r->cfGetUnit = NULL; // only for ring stuff
357  //r->cfExtGcd = NULL; // only for ring stuff
358  // r->cfDivBy = NULL; // only for ring stuff
359 #endif
360  r->cfInpNeg = nAEQNeg;
361  r->cfInvers= NULL;
362  //r->cfCopy = ndCopy;
363  //r->cfRePart = ndCopy;
364  //r->cfImPart = ndReturn0;
365  r->cfWriteLong = nAEQWriteLong;
366  r->cfRead = nAEQRead;
367  //r->cfNormalize=ndNormalize;
368  r->cfGreater = nAEQGreater;
369  r->cfEqual = nAEQEqual;
370  r->cfIsZero = nAEQIsZero;
371  r->cfIsOne = nAEQIsOne;
372  r->cfIsMOne = nAEQIsOne;
373  r->cfGreaterZero = nAEQGreaterZero;
374  r->cfPower = nAEQPower; // ZU BEARBEITEN
375  r->cfGetDenom = nAEQGetDenom;
376  r->cfGetNumerator = nAEQGetNumerator;
377  r->cfGcd = nAEQGcd;
378  r->cfLcm = nAEQLcm; // ZU BEARBEITEN
379  r->cfDelete= nAEQDelete;
380 
381  r->cfSetMap = npSetMap; // extern nMapFunc npSetMap(const coeffs src, const coeffs dst); // FIXME: WHY??? // TODO: this seems to be a bug!
382 
383  r->cfInpMult=nAEQInpMult; //????
384  r->cfCoeffWrite=nAEQCoeffWrite; //????
385 
386 
387  // the variables:
388  r->nNULL = (number) 0;
389  //r->type = n_AE;
390  r->has_simple_Alloc=TRUE;
391  r->has_simple_Inverse=TRUE;
392  return FALSE;
393 }
BOOLEAN nAEQGreaterZero(number a, number b, const coeffs r)
number nAEQGetDenom(number &a, const coeffs r)
Definition: OPAEQ.cc:258
void nAEQInpMult(number &a, number b, const coeffs r)
Definition: OPAEQ.cc:302
number nAEQAdd(number a, number b, const coeffs r)
Definition: OPAEQ.cc:74
#define FALSE
Definition: auxiliary.h:140
void nAEQDelete(number *a, const coeffs r)
Definition: OPAEQ.cc:290
void nAEQPower(number a, int i, number *result, const coeffs r)
Definition: OPAEQ.cc:253
number nAEQGetNumerator(number &a, const coeffs r)
Definition: OPAEQ.cc:263
void nAEQWriteLong(number a, const coeffs r)
Definition: OPAEQ.cc:189
#define TRUE
Definition: auxiliary.h:144
number nAEQNeg(number c, const coeffs r)
Definition: OPAEQ.cc:165
BOOLEAN nAEQIsOne(number a, const coeffs r)
Definition: OPAEQ.cc:233
static char * n_QAECoeffString(const coeffs r)
Definition: OPAEQ.cc:327
number nAEQLcm(number a, number b, const coeffs r)
Definition: OPAEQ.cc:277
const ring r
Definition: syzextra.cc:208
BOOLEAN nAEQEqual(number a, number b, const coeffs r)
Definition: OPAEQ.cc:218
int nAEQSize(number a, const coeffs r)
Definition: OPAEQ.cc:147
number nAEQIntMod(number a, number b, const coeffs r)
Definition: OPAEQ.cc:117
number nAEQSub(number a, number b, const coeffs r)
Definition: OPAEQ.cc:94
nMapFunc npSetMap(const coeffs src, const coeffs dst)
Definition: modulop.cc:771
number nAEQMult(number a, number b, const coeffs r)
Definition: OPAEQ.cc:84
number nAEQDiv(number a, number b, const coeffs r)
Definition: OPAEQ.cc:105
number nAEQExactDiv(number a, number b, const coeffs r)
Definition: OPAEQ.cc:122
number nAEQGcd(number a, number b, const coeffs r)
Definition: OPAEQ.cc:268
#define NULL
Definition: omList.c:10
const char * nAEQRead(const char *s, number *a, const coeffs r)
Definition: OPAEQ.cc:200
BOOLEAN nAEQIsZero(number a, const coeffs r)
Definition: OPAEQ.cc:226
static char * n_QAECoeffName(const coeffs r)
Definition: OPAEQ.cc:322
void nAEQCoeffWrite(const coeffs r, BOOLEAN details)
Definition: OPAEQ.cc:307
number nAEQInit(long i, const coeffs r)
Definition: OPAEQ.cc:135
BOOLEAN nAEQGreater(number a, number b, const coeffs r)
Definition: OPAEQ.cc:210
long nAEQInt(number &a, const coeffs r)
Definition: OPAEQ.cc:153