jengelh-datetimespielwiese
Last change
on this file since 5fb90e was
5fb90e,
checked in by Hans Schoenemann <hannes@…>, 11 years ago
|
chg: move P_setGlobals to ring.cc, to be called from rComplete
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | #include "mod2.h" |
---|
2 | |
---|
3 | #include <omalloc/omalloc.h> |
---|
4 | #include <misc/auxiliary.h> |
---|
5 | #include <misc/options.h> |
---|
6 | |
---|
7 | #include "polys.h" |
---|
8 | |
---|
9 | ring currRing = NULL; |
---|
10 | ideal currQuotient = NULL; |
---|
11 | |
---|
12 | void rChangeCurrRing(ring r) |
---|
13 | { |
---|
14 | currRing = r; |
---|
15 | currQuotient = r->qideal; |
---|
16 | //------------ global variables related to coefficients ------------ |
---|
17 | nSetChar(r->cf); |
---|
18 | //------------ global variables related to polys ------------------- |
---|
19 | } |
---|
20 | /* |
---|
21 | |
---|
22 | /// internally changes the gloabl ring and resets the relevant |
---|
23 | /// global variables: |
---|
24 | /// SHOULD BE DEPRECATED NOW...? |
---|
25 | void rChangeCurrRing(ring r) |
---|
26 | { |
---|
27 | // if (!rMinpolyIsNULL(currRing)) |
---|
28 | // { |
---|
29 | // omCheckAddr(currRing->cf->minpoly); |
---|
30 | // } |
---|
31 | //------------ set global ring vars -------------------------------- |
---|
32 | //currRing = r; |
---|
33 | //currQuotient=NULL; |
---|
34 | if (r != NULL) |
---|
35 | { |
---|
36 | rTest(r); |
---|
37 | //------------ set global ring vars -------------------------------- |
---|
38 | //currQuotient=r->qideal; |
---|
39 | |
---|
40 | //------------ global variables related to coefficients ------------ |
---|
41 | nSetChar(r->cf); |
---|
42 | |
---|
43 | //------------ global variables related to polys ------------------- |
---|
44 | p_SetGlobals(r); |
---|
45 | //------------ global variables related to factory ----------------- |
---|
46 | } |
---|
47 | } |
---|
48 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.