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

Go to the source code of this file.

Functions

BOOLEAN n_pAEInitChar (coeffs, void *)
 

Function Documentation

§ n_pAEInitChar()

BOOLEAN n_pAEInitChar ( coeffs  ,
void *   
)

Definition at line 351 of file OPAEp.cc.

352 {
353  // r->is_field, is_domain
354  //Charakteristik abgreifen!
355  const int c = (int) (long) p;
356 
357 
358  r->ch=c;
359  r->cfKillChar=NULL;
360  //r->nCoeffIsEqual=ndCoeffIsEqual;
361  r->cfMult = nAEpMult;
362  r->cfSub = nAEpSub;
363  r->cfAdd = nAEpAdd;
364  r->cfDiv = nAEpDiv;
365  r->cfIntMod= nAEpIntMod;
366  r->cfExactDiv= nAEpExactDiv;
367  r->cfInit = nAEpInit;
368  r->cfSize = nAEpSize;
369  r->cfInt = nAEpInt;
370 #ifdef HAVE_RINGS
371  //r->cfDivComp = NULL; // only for ring stuff
372  //r->cfIsUnit = NULL; // only for ring stuff
373  //r->cfGetUnit = NULL; // only for ring stuff
374  //r->cfExtGcd = NULL; // only for ring stuff
375  // r->cfDivBy = NULL; // only for ring stuff
376 #endif
377  r->cfInpNeg = nAEpNeg;
378  r->cfInvers= NULL;
379  //r->cfCopy = ndCopy;
380  //r->cfRePart = ndCopy;
381  //r->cfImPart = ndReturn0;
382  r->cfWriteLong = nAEpWriteLong;
383  r->cfRead = nAEpRead;
384  //r->cfNormalize=ndNormalize;
385  r->cfGreater = nAEpGreater;
386  r->cfEqual = nAEpEqual;
387  r->cfIsZero = nAEpIsZero;
388  r->cfIsOne = nAEpIsOne;
389  r->cfIsMOne = nAEpIsOne;
390  r->cfGreaterZero = nAEpGreaterZero;
391  r->cfPower = nAEpPower; // ZU BEARBEITEN
392  r->cfGetDenom = nAEpGetDenom;
393  r->cfGetNumerator = nAEpGetNumerator;
394  r->cfGcd = nAEpGcd;
395  r->cfLcm = nAEpLcm; // ZU BEARBEITEN
396  r->cfDelete= nAEpDelete;
397 
398  r->cfSetMap = npSetMap; // extern nMapFunc npSetMap(const coeffs src, const coeffs dst); // FIXME: WHY??? // TODO: this seems to be a bug!
399 
400  r->cfInpMult=nAEpInpMult; //????
401  r->cfCoeffWrite=nAEpCoeffWrite; //????
402 
403 
404  // the variables:
405  r->nNULL = (number) 0;
406  //r->type = n_AE;
407  r->ch = c;
408  r->has_simple_Alloc=TRUE;
409  r->has_simple_Inverse=TRUE;
410  return FALSE;
411 }
void nAEpDelete(number *a, const coeffs r)
Definition: OPAEp.cc:310
number nAEpMult(number a, number b, const coeffs r)
Definition: OPAEp.cc:83
number nAEpExactDiv(number a, number b, const coeffs r)
Definition: OPAEp.cc:121
number nAEpSub(number a, number b, const coeffs r)
Definition: OPAEp.cc:93
#define FALSE
Definition: auxiliary.h:95
void nAEpPower(number a, int i, number *result, const coeffs r)
Definition: OPAEp.cc:273
return P p
Definition: myNF.cc:203
const char * nAEpRead(const char *s, number *a, const coeffs r)
Definition: OPAEp.cc:213
number nAEpLcm(number a, number b, const coeffs r)
Definition: OPAEp.cc:297
long nAEpInt(number &a, const coeffs r)
Definition: OPAEp.cc:161
#define TRUE
Definition: auxiliary.h:99
void nAEpCoeffWrite(const coeffs r, BOOLEAN details)
Definition: OPAEp.cc:331
number nAEpNeg(number c, const coeffs r)
Definition: OPAEp.cc:173
void nAEpInpMult(number &a, number b, const coeffs r)
Definition: OPAEp.cc:322
const ring r
Definition: syzextra.cc:208
void nAEpWriteLong(number &a, const coeffs r)
number nAEpAdd(number a, number b, const coeffs r)
Definition: OPAEp.cc:73
number nAEpIntMod(number a, number b, const coeffs r)
Definition: OPAEp.cc:116
int nAEpSize(number a, const coeffs r)
Definition: OPAEp.cc:155
number nAEpGcd(number a, number b, const coeffs r)
Definition: OPAEp.cc:288
nMapFunc npSetMap(const coeffs src, const coeffs dst)
Definition: modulop.cc:778
BOOLEAN nAEpGreaterZero(number a, number b, const coeffs r)
BOOLEAN nAEpIsOne(number a, const coeffs r)
Definition: OPAEp.cc:252
BOOLEAN nAEpIsZero(number a, const coeffs r)
Definition: OPAEp.cc:245
#define NULL
Definition: omList.c:10
BOOLEAN nAEpGreater(number a, number b, const coeffs r)
Definition: OPAEp.cc:229
BOOLEAN nAEpEqual(number a, number b, const coeffs r)
Definition: OPAEp.cc:237
number nAEpInit(long i, const coeffs r)
Definition: OPAEp.cc:134
number nAEpGetNumerator(number &a, const coeffs r)
Definition: OPAEp.cc:283
number nAEpDiv(number a, number b, const coeffs r)
Definition: OPAEp.cc:104
number nAEpGetDenom(number &a, const coeffs r)
Definition: OPAEp.cc:278