Functions
OPAEp.cc File Reference
#include <misc/auxiliary.h>
#include <omalloc/omalloc.h>
#include <factory/factory.h>
#include <misc/mylimits.h>
#include <reporter/reporter.h>
#include "coeffs.h"
#include "numbers.h"
#include "mpr_complex.h"
#include "OPAEp.h"
#include "AEp.h"
#include "modulop.h"
#include <string.h>

Go to the source code of this file.

Functions

BOOLEAN nAEpCoeffIsEqual (number a, number b, const coeffs r)
 
number nAEpMult (number a, number b, const coeffs r)
 
number nAEpSub (number a, number b, const coeffs r)
 
number nAEpAdd (number a, number b, const coeffs r)
 
number nAEpDiv (number a, number b, const coeffs r)
 
number nAEpIntMod (number a, number b, const coeffs r)
 
number nAEpExactDiv (number a, number b, const coeffs r)
 
number nAEpInit (long i, const coeffs r)
 
number nAEpInitMPZ (mpz_t m, const coeffs r)
 
int nAEpSize (number a, const coeffs r)
 
long nAEpInt (number &a, const coeffs r)
 
number nAEpMPZ (number a, const coeffs r)
 
number nAEpNeg (number c, const coeffs r)
 
number nAEpCopy (number a, number b, const coeffs r)
 
number nAEpRePart (number a, number b, const coeffs r)
 
number nAEpImPart (number a, number b, const coeffs r)
 
void nAEpWriteLong (number &a, const coeffs r)
 
void nAEpWriteShort (number &a, const coeffs r)
 
const char * nAEpRead (const char *s, number *a, const coeffs r)
 
number nAEpNormalize (number a, number b, const coeffs r)
 
BOOLEAN nAEpGreater (number a, number b, const coeffs r)
 
BOOLEAN nAEpEqual (number a, number b, const coeffs r)
 
BOOLEAN nAEpIsZero (number a, const coeffs r)
 
BOOLEAN nAEpIsOne (number a, const coeffs r)
 
BOOLEAN nAEpIsMOne (number a, const coeffs r)
 
BOOLEAN nAEpGreaterZero (number a, number b, const coeffs r)
 
void nAEpPower (number a, int i, number *result, const coeffs r)
 
number nAEpGetDenom (number &a, const coeffs r)
 
number nAEpGetNumerator (number &a, const coeffs r)
 
number nAEpGcd (number a, number b, const coeffs r)
 
number nAEpLcm (number a, number b, const coeffs r)
 
void nAEpDelete (number *a, const coeffs r)
 
number nAEpSetMap (number a, const coeffs r)
 
void nAEpInpMult (number &a, number b, const coeffs r)
 
void nAEpCoeffWrite (const coeffs r, BOOLEAN details)
 
BOOLEAN nAEpClearContent (number a, const coeffs r)
 
BOOLEAN nAEpClearDenominators (number a, const coeffs r)
 
number nAEpCopy (number c, const coeffs)
 
number nAEpRePart (number c, const coeffs)
 
number nAEpImPart (number c, const coeffs)
 
void nAEpWriteLong (number a, const coeffs)
 
void nAEpWriteShort (number a, const coeffs)
 
BOOLEAN nAEpGreaterZero (number a, const coeffs r)
 
BOOLEAN n_pAEInitChar (coeffs r, void *p)
 

Function Documentation

§ n_pAEInitChar()

BOOLEAN n_pAEInitChar ( coeffs  r,
void *  p 
)

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:97
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:101
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
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:773
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

§ nAEpAdd()

number nAEpAdd ( number  a,
number  b,
const coeffs  r 
)

Definition at line 73 of file OPAEp.cc.

74 {
75  p_poly* f=reinterpret_cast<p_poly*> (a);
76  p_poly* g=reinterpret_cast<p_poly*> (b);
77  p_poly *res=new p_poly;
78  res->p_poly_set(*f);
79  res->p_poly_add_to(*g);
80  return (number) res;
81 }
const poly a
Definition: syzextra.cc:212
g
Definition: cfModGcd.cc:4031
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_set(const p_poly)
Definition: AEp.cc:804
void p_poly_add_to(const p_poly)
Definition: AEp.cc:106
const poly b
Definition: syzextra.cc:213

§ nAEpClearContent()

BOOLEAN nAEpClearContent ( number  a,
const coeffs  r 
)

Definition at line 336 of file OPAEp.cc.

337 {
338  return FALSE;
339 }
#define FALSE
Definition: auxiliary.h:97

§ nAEpClearDenominators()

BOOLEAN nAEpClearDenominators ( number  a,
const coeffs  r 
)

Definition at line 341 of file OPAEp.cc.

342 {
343  return FALSE;
344 }
#define FALSE
Definition: auxiliary.h:97

§ nAEpCoeffIsEqual()

BOOLEAN nAEpCoeffIsEqual ( number  a,
number  b,
const coeffs  r 
)

§ nAEpCoeffWrite()

void nAEpCoeffWrite ( const coeffs  r,
BOOLEAN  details 
)

Definition at line 331 of file OPAEp.cc.

332 {
333  return;
334 }

§ nAEpCopy() [1/2]

number nAEpCopy ( number  a,
number  b,
const coeffs  r 
)

§ nAEpCopy() [2/2]

number nAEpCopy ( number  c,
const coeffs   
)

Definition at line 182 of file OPAEp.cc.

183 {
184  return c;
185 }

§ nAEpDelete()

void nAEpDelete ( number *  a,
const coeffs  r 
)

Definition at line 310 of file OPAEp.cc.

311 {
312  return;
313 }

§ nAEpDiv()

number nAEpDiv ( number  a,
number  b,
const coeffs  r 
)

Definition at line 104 of file OPAEp.cc.

105 {
106  p_poly* f=reinterpret_cast<p_poly*> (a);
107  p_poly* g=reinterpret_cast<p_poly*> (b);
108  p_poly *res=new p_poly;
109  p_poly *s=new p_poly;
110  res->p_poly_set(*f);
111  res->p_poly_div_to(*res,*s,*g);
112  return (number) res;
113 }
const CanonicalForm int s
Definition: facAbsFact.cc:55
void p_poly_div_to(p_poly &, p_poly &, p_poly)
Definition: AEp.cc:720
const poly a
Definition: syzextra.cc:212
g
Definition: cfModGcd.cc:4031
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_set(const p_poly)
Definition: AEp.cc:804
const poly b
Definition: syzextra.cc:213

§ nAEpEqual()

BOOLEAN nAEpEqual ( number  a,
number  b,
const coeffs  r 
)

Definition at line 237 of file OPAEp.cc.

238 {
239  p_poly* f=reinterpret_cast<p_poly*> (a);
240  p_poly* g=reinterpret_cast<p_poly*> (b);
241  if (f->is_equal(*g) == 1) {return FALSE;}
242  else {return TRUE;}
243 }
const poly a
Definition: syzextra.cc:212
#define FALSE
Definition: auxiliary.h:97
#define TRUE
Definition: auxiliary.h:101
int is_equal(const p_poly) const
Definition: AEp.cc:844
g
Definition: cfModGcd.cc:4031
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
const poly b
Definition: syzextra.cc:213

§ nAEpExactDiv()

number nAEpExactDiv ( number  a,
number  b,
const coeffs  r 
)

Definition at line 121 of file OPAEp.cc.

122 {
123  p_poly* f=reinterpret_cast<p_poly*> (a);
124  p_poly* g=reinterpret_cast<p_poly*> (b);
125  p_poly *res=new p_poly;
126  p_poly *s=new p_poly;
127  res->p_poly_set(*f);
128  res->p_poly_div_to(*res,*s,*g);
129  return (number) res;
130 }
const CanonicalForm int s
Definition: facAbsFact.cc:55
void p_poly_div_to(p_poly &, p_poly &, p_poly)
Definition: AEp.cc:720
const poly a
Definition: syzextra.cc:212
g
Definition: cfModGcd.cc:4031
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_set(const p_poly)
Definition: AEp.cc:804
const poly b
Definition: syzextra.cc:213

§ nAEpGcd()

number nAEpGcd ( number  a,
number  b,
const coeffs  r 
)

Definition at line 288 of file OPAEp.cc.

289 {
290  p_poly* f=reinterpret_cast<p_poly*> (a);
291  p_poly* g=reinterpret_cast<p_poly*> (b);
292  p_poly *res=new p_poly;
293  res->p_poly_gcd(*f,*g);
294  return (number) res;
295 }
const poly a
Definition: syzextra.cc:212
g
Definition: cfModGcd.cc:4031
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
void p_poly_gcd(p_poly, p_poly)
Definition: AEp.cc:889
FILE * f
Definition: checklibs.c:7
const poly b
Definition: syzextra.cc:213

§ nAEpGetDenom()

number nAEpGetDenom ( number &  a,
const coeffs  r 
)

Definition at line 278 of file OPAEp.cc.

279 {
280  return (number) 1;
281 }

§ nAEpGetNumerator()

number nAEpGetNumerator ( number &  a,
const coeffs  r 
)

Definition at line 283 of file OPAEp.cc.

284 {
285  return a;
286 }
const poly a
Definition: syzextra.cc:212

§ nAEpGreater()

BOOLEAN nAEpGreater ( number  a,
number  b,
const coeffs  r 
)

Definition at line 229 of file OPAEp.cc.

230 {
231  p_poly* f=reinterpret_cast<p_poly*> (a);
232  p_poly* g=reinterpret_cast<p_poly*> (b);
233  if (f->deg > g->deg) {return FALSE;}
234  else {return TRUE;}
235 }
const poly a
Definition: syzextra.cc:212
#define FALSE
Definition: auxiliary.h:97
#define TRUE
Definition: auxiliary.h:101
g
Definition: cfModGcd.cc:4031
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
int deg
Definition: AEp.h:15
const poly b
Definition: syzextra.cc:213

§ nAEpGreaterZero() [1/2]

BOOLEAN nAEpGreaterZero ( number  a,
number  b,
const coeffs  r 
)

§ nAEpGreaterZero() [2/2]

BOOLEAN nAEpGreaterZero ( number  a,
const coeffs  r 
)

Definition at line 267 of file OPAEp.cc.

268 {
269  if (nAEpIsZero(a, r) == FALSE) { return TRUE; }
270  else { return FALSE; }
271 }
const poly a
Definition: syzextra.cc:212
#define FALSE
Definition: auxiliary.h:97
#define TRUE
Definition: auxiliary.h:101
BOOLEAN nAEpIsZero(number a, const coeffs r)
Definition: OPAEp.cc:245

§ nAEpImPart() [1/2]

number nAEpImPart ( number  a,
number  b,
const coeffs  r 
)

§ nAEpImPart() [2/2]

number nAEpImPart ( number  c,
const coeffs   
)

Definition at line 192 of file OPAEp.cc.

193 {
194  return c;
195 }

§ nAEpInit()

number nAEpInit ( long  i,
const coeffs  r 
)

Definition at line 134 of file OPAEp.cc.

135 {
136  int j=7;
137  mpz_t m;
138  mpz_init_set_ui(m, i);
139  p_poly* res=new p_poly;
140  res->p_poly_set(m, j);
141  number res1=reinterpret_cast<number>(res);
142  return res1;
143 }
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
int j
Definition: myNF.cc:70
int m
Definition: cfEzgcd.cc:119
int i
Definition: cfEzgcd.cc:123
void p_poly_set(const p_poly)
Definition: AEp.cc:804

§ nAEpInitMPZ()

number nAEpInitMPZ ( mpz_t  m,
const coeffs  r 
)

Definition at line 145 of file OPAEp.cc.

146 {
147  int j=7;
148  p_poly* res=new p_poly;
149  res->p_poly_set(m, j);
150  number res1=reinterpret_cast<number>(res);
151  return res1;
152 
153 }
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
int j
Definition: myNF.cc:70
int m
Definition: cfEzgcd.cc:119
void p_poly_set(const p_poly)
Definition: AEp.cc:804

§ nAEpInpMult()

void nAEpInpMult ( number &  a,
number  b,
const coeffs  r 
)

Definition at line 322 of file OPAEp.cc.

323 {
324  p_poly* f=reinterpret_cast<p_poly*> (a);
325  p_poly* g=reinterpret_cast<p_poly*> (b);
326  f->p_poly_mult_n_to(*g);
327  a=(number) f;
328  return ;
329 }
const poly a
Definition: syzextra.cc:212
return
Definition: syzextra.cc:280
g
Definition: cfModGcd.cc:4031
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_mult_n_to(const p_poly)
Definition: AEp.cc:456
const poly b
Definition: syzextra.cc:213

§ nAEpInt()

long nAEpInt ( number &  a,
const coeffs  r 
)

Definition at line 161 of file OPAEp.cc.

162 {
163  return 1;
164 }

§ nAEpIntMod()

number nAEpIntMod ( number  a,
number  b,
const coeffs  r 
)

Definition at line 116 of file OPAEp.cc.

117 {
118  return a;
119 }
const poly a
Definition: syzextra.cc:212

§ nAEpIsMOne()

BOOLEAN nAEpIsMOne ( number  a,
const coeffs  r 
)

Definition at line 259 of file OPAEp.cc.

260 {
261  number b=nAEpNeg(a, r);
262  p_poly* f=reinterpret_cast<p_poly*> (b);
263  if (f->is_one() == 1) {return FALSE;}
264  else {return TRUE;}
265 }
const poly a
Definition: syzextra.cc:212
#define FALSE
Definition: auxiliary.h:97
#define TRUE
Definition: auxiliary.h:101
number nAEpNeg(number c, const coeffs r)
Definition: OPAEp.cc:173
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
int is_one() const
Definition: AEp.cc:869
const poly b
Definition: syzextra.cc:213

§ nAEpIsOne()

BOOLEAN nAEpIsOne ( number  a,
const coeffs  r 
)

Definition at line 252 of file OPAEp.cc.

253 {
254  p_poly* f=reinterpret_cast<p_poly*> (a);
255  if (f->is_one() == 1) {return FALSE;}
256  else {return TRUE;}
257 }
const poly a
Definition: syzextra.cc:212
#define FALSE
Definition: auxiliary.h:97
#define TRUE
Definition: auxiliary.h:101
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
int is_one() const
Definition: AEp.cc:869

§ nAEpIsZero()

BOOLEAN nAEpIsZero ( number  a,
const coeffs  r 
)

Definition at line 245 of file OPAEp.cc.

246 {
247  p_poly* f=reinterpret_cast<p_poly*> (a);
248  if (f->is_zero() == 1) {return FALSE;}
249  else {return TRUE;}
250 }
const poly a
Definition: syzextra.cc:212
#define FALSE
Definition: auxiliary.h:97
#define TRUE
Definition: auxiliary.h:101
Definition: AEp.h:9
int is_zero() const
Definition: AEp.cc:860
FILE * f
Definition: checklibs.c:7

§ nAEpLcm()

number nAEpLcm ( number  a,
number  b,
const coeffs  r 
)

Definition at line 297 of file OPAEp.cc.

298 {
299  p_poly* f=reinterpret_cast<p_poly*> (a);
300  p_poly* g=reinterpret_cast<p_poly*> (b);
301  p_poly *gcd=new p_poly;
302  p_poly *res=new p_poly;
303  p_poly *s=new p_poly;
304  gcd->p_poly_gcd(*f,*g);
305  res->p_poly_mult_n(*f,*g);
306  res->p_poly_div_to(*res,*s,*gcd);
307  return (number) res;
308 }
const CanonicalForm int s
Definition: facAbsFact.cc:55
void p_poly_div_to(p_poly &, p_poly &, p_poly)
Definition: AEp.cc:720
void p_poly_mult_n(p_poly, p_poly)
Definition: AEp.cc:404
const poly a
Definition: syzextra.cc:212
g
Definition: cfModGcd.cc:4031
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
void p_poly_gcd(p_poly, p_poly)
Definition: AEp.cc:889
FILE * f
Definition: checklibs.c:7
int gcd(int a, int b)
Definition: walkSupport.cc:839
const poly b
Definition: syzextra.cc:213

§ nAEpMPZ()

number nAEpMPZ ( number  a,
const coeffs  r 
)

Definition at line 167 of file OPAEp.cc.

168 {
169  return a;
170 }
const poly a
Definition: syzextra.cc:212

§ nAEpMult()

number nAEpMult ( number  a,
number  b,
const coeffs  r 
)

Definition at line 83 of file OPAEp.cc.

84 {
85  p_poly* f=reinterpret_cast<p_poly*> (a);
86  p_poly* g=reinterpret_cast<p_poly*> (b);
87  p_poly *res=new p_poly;
88  res->p_poly_set(*f);
89  res->p_poly_mult_n_to(*g);
90  return (number) res;
91 }
const poly a
Definition: syzextra.cc:212
g
Definition: cfModGcd.cc:4031
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_mult_n_to(const p_poly)
Definition: AEp.cc:456
void p_poly_set(const p_poly)
Definition: AEp.cc:804
const poly b
Definition: syzextra.cc:213

§ nAEpNeg()

number nAEpNeg ( number  c,
const coeffs  r 
)

Definition at line 173 of file OPAEp.cc.

174 {
175  p_poly* f=reinterpret_cast<p_poly*> (c);
176  p_poly *res=new p_poly;
177  res->p_poly_set(*f);
178  res->p_poly_neg();
179  return (number) res;
180 }
void p_poly_neg()
Definition: AEp.cc:395
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_set(const p_poly)
Definition: AEp.cc:804

§ nAEpNormalize()

number nAEpNormalize ( number  a,
number  b,
const coeffs  r 
)

Definition at line 224 of file OPAEp.cc.

225 {
226  return a;
227 }
const poly a
Definition: syzextra.cc:212

§ nAEpPower()

void nAEpPower ( number  a,
int  i,
number *  result,
const coeffs  r 
)

Definition at line 273 of file OPAEp.cc.

274 {
275  return;
276 }

§ nAEpRead()

const char * nAEpRead ( const char *  s,
number *  a,
const coeffs  r 
)

Definition at line 213 of file OPAEp.cc.

214 {
215  p_poly& f=reinterpret_cast <p_poly&>(a);
216  f.p_poly_insert();
217  f.p_poly_print();
218  *a=reinterpret_cast <number>(&f);
219  char* c=new char;
220  *c='c';
221  return c;
222 }
void p_poly_print()
Definition: AEp.cc:1025
const poly a
Definition: syzextra.cc:212
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_insert()
Definition: AEp.cc:1004

§ nAEpRePart() [1/2]

number nAEpRePart ( number  a,
number  b,
const coeffs  r 
)

§ nAEpRePart() [2/2]

number nAEpRePart ( number  c,
const coeffs   
)

Definition at line 187 of file OPAEp.cc.

188 {
189  return c;
190 }

§ nAEpSetMap()

number nAEpSetMap ( number  a,
const coeffs  r 
)

§ nAEpSize()

int nAEpSize ( number  a,
const coeffs  r 
)

Definition at line 155 of file OPAEp.cc.

156 {
157  p_poly* f=reinterpret_cast<p_poly*> (a);
158  return f->deg;
159 }
const poly a
Definition: syzextra.cc:212
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
int deg
Definition: AEp.h:15

§ nAEpSub()

number nAEpSub ( number  a,
number  b,
const coeffs  r 
)

Definition at line 93 of file OPAEp.cc.

94 {
95  p_poly* f=reinterpret_cast<p_poly*> (a);
96  p_poly* g=reinterpret_cast<p_poly*> (b);
97  p_poly *res=new p_poly;
98  res->p_poly_set(*f);
99  res->p_poly_sub_to(*g);
100  return (number) res;
101 }
const poly a
Definition: syzextra.cc:212
g
Definition: cfModGcd.cc:4031
poly res
Definition: myNF.cc:322
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7
void p_poly_sub_to(const p_poly)
Definition: AEp.cc:254
void p_poly_set(const p_poly)
Definition: AEp.cc:804
const poly b
Definition: syzextra.cc:213

§ nAEpWriteLong() [1/2]

void nAEpWriteLong ( number &  a,
const coeffs  r 
)

§ nAEpWriteLong() [2/2]

void nAEpWriteLong ( number  a,
const coeffs   
)

Definition at line 197 of file OPAEp.cc.

198 {
199  p_poly* f=reinterpret_cast <p_poly*>(a);
200  f->p_poly_print();
201 
202  return;
203 }
void p_poly_print()
Definition: AEp.cc:1025
const poly a
Definition: syzextra.cc:212
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7

§ nAEpWriteShort() [1/2]

void nAEpWriteShort ( number &  a,
const coeffs  r 
)

§ nAEpWriteShort() [2/2]

void nAEpWriteShort ( number  a,
const coeffs   
)

Definition at line 205 of file OPAEp.cc.

206 {
207  p_poly* f=reinterpret_cast <p_poly*>(a);
208  f->p_poly_print();
209  return ;
210 }
void p_poly_print()
Definition: AEp.cc:1025
const poly a
Definition: syzextra.cc:212
return
Definition: syzextra.cc:280
Definition: AEp.h:9
FILE * f
Definition: checklibs.c:7