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 331 of file OPAEQ.cc.

332 {
333  // r->is_field,is_domain?
334  r->ch=0;
335  //r->cfKillChar=ndKillChar;
336  //r->nCoeffIsEqual=ndCoeffIsEqual;
337  r->cfMult = nAEQMult;
338  r->cfSub = nAEQSub;
339  r->cfAdd = nAEQAdd;
340  r->cfDiv = nAEQDiv;
341  r->cfIntMod= nAEQIntMod;
342  r->cfExactDiv= nAEQExactDiv;
343  r->cfInit = nAEQInit;
344  r->cfSize = nAEQSize;
345  r->cfInt = nAEQInt;
346  r->cfCoeffName = n_QAECoeffName;
347 #ifdef HAVE_RINGS
348  //r->cfDivComp = NULL; // only for ring stuff
349  //r->cfIsUnit = NULL; // only for ring stuff
350  //r->cfGetUnit = NULL; // only for ring stuff
351  //r->cfExtGcd = NULL; // only for ring stuff
352  // r->cfDivBy = NULL; // only for ring stuff
353 #endif
354  r->cfInpNeg = nAEQNeg;
355  r->cfInvers= NULL;
356  //r->cfCopy = ndCopy;
357  //r->cfRePart = ndCopy;
358  //r->cfImPart = ndReturn0;
359  r->cfWriteLong = nAEQWriteLong;
360  r->cfRead = nAEQRead;
361  //r->cfNormalize=ndNormalize;
362  r->cfGreater = nAEQGreater;
363  r->cfEqual = nAEQEqual;
364  r->cfIsZero = nAEQIsZero;
365  r->cfIsOne = nAEQIsOne;
366  r->cfIsMOne = nAEQIsOne;
367  r->cfGreaterZero = nAEQGreaterZero;
368  r->cfPower = nAEQPower; // ZU BEARBEITEN
369  r->cfGetDenom = nAEQGetDenom;
370  r->cfGetNumerator = nAEQGetNumerator;
371  r->cfGcd = nAEQGcd;
372  r->cfLcm = nAEQLcm; // ZU BEARBEITEN
373  r->cfDelete= nAEQDelete;
374 
375  r->cfSetMap = npSetMap; // extern nMapFunc npSetMap(const coeffs src, const coeffs dst); // FIXME: WHY??? // TODO: this seems to be a bug!
376 
377  r->cfInpMult=nAEQInpMult; //????
378  r->cfCoeffWrite=nAEQCoeffWrite; //????
379 
380 
381  // the variables:
382  r->nNULL = (number) 0;
383  //r->type = n_AE;
384  r->has_simple_Alloc=TRUE;
385  r->has_simple_Inverse=TRUE;
386  return FALSE;
387 }
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
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