Changeset 704325e in git
- Timestamp:
- Nov 17, 1999, 11:51:04 AM (24 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 87e389f2290616eea082667d75d97af307831fdc
- Parents:
- 97d3c00617cfd87ee2359033f8b2ae1bbf23a456
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r97d3c0 r704325e 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.11 6 1999-11-16 12:39:26obachman Exp $ */4 /* $Id: extra.cc,v 1.117 1999-11-17 10:51:04 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 51 51 #include "feOpt.h" 52 52 #include "distrib.h" 53 #include "prCopy.h" 53 54 54 55 // Define to enable many more system commands … … 1116 1117 else 1117 1118 #endif 1119 /*==================== thomas =================*/ 1120 if (strcmp(sys_cmd, "thomas") == 0) 1121 { 1122 poly p = (poly) h->Data(); 1123 ring cr = currRing; 1124 ring r = rCurrRingAssure_C_dp(); 1125 poly p_r = prCopyR(p, cr); 1126 pTest(p_r); 1127 pWrite(p_r); 1128 rChangeCurrRing(cr, TRUE); 1129 return FALSE; 1130 } 1118 1131 /*==================== Error =================*/ 1119 1132 Werror( "system(\"%s\",...) %s", sys_cmd, feNotImplemented ); -
Singular/ring.cc
r97d3c0 r704325e 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.8 2 1999-11-15 17:20:44obachman Exp $ */4 /* $Id: ring.cc,v 1.83 1999-11-17 10:51:02 obachman Exp $ */ 5 5 6 6 /* … … 80 80 void rChangeCurrRing(ring r, BOOLEAN complete) 81 81 { 82 rTest(r);83 82 /*------------ set global ring vars --------------------------------*/ 84 83 currRing = r; … … 86 85 if (r != NULL) 87 86 { 87 rTest(r); 88 88 if (complete) 89 89 { … … 894 894 idDelete(&r->qideal); 895 895 r->qideal=NULL; 896 rChangeCurrRing(savecurrRing, FALSE);896 rChangeCurrRing(savecurrRing,TRUE); 897 897 } 898 898 int i=1; … … 3337 3337 3338 3338 3339 // use this f ro global orderingconsisting of two blocks3339 // use this for global orderings consisting of two blocks 3340 3340 static ring rCurrRingAssure_Global(rRingOrder_t b1, rRingOrder_t b2) 3341 3341 { 3342 3342 int r_blocks = rBlocks(currRing); 3343 3343 int i; 3344 3345 assume(b1 == ringorder_c || b1 == ringorder_C || 3346 b2 == ringorder_c || b1 == ringorder_C || 3347 b2 == ringorder_S); 3344 3348 3345 3349 if (r_blocks == 2 && currRing->order[0] == b1 && currRing->order[2] == 0) … … 3353 3357 res->order[0] = b1; 3354 3358 res->order[1] = b2; 3355 res->block0[0] = 1; 3356 res->block1[0] = currRing->N; 3359 if (b1 == ringorder_c || b1 == ringorder_C) 3360 { 3361 res->block0[1] = 1; 3362 res->block1[1] = currRing->N; 3363 } 3364 else 3365 { 3366 res->block0[0] = 1; 3367 res->block1[0] = currRing->N; 3368 } 3369 // HANNES: This sould be set in rComplete 3357 3370 res->OrdSgn = 1; 3358 3371 rComplete(res, 1); … … 3372 3385 } 3373 3386 3387 ring rCurrRingAssure_C_dp() 3388 { 3389 return rCurrRingAssure_Global(ringorder_C, ringorder_dp); 3390 } 3391 3392 3374 3393 void rSetSyzComp(int k) 3375 3394 { -
Singular/ring.h
r97d3c0 r704325e 7 7 * ABSTRACT - the interpreter related ring operations 8 8 */ 9 /* $Id: ring.h,v 1.4 0 1999-11-15 17:20:45obachman Exp $ */9 /* $Id: ring.h,v 1.41 1999-11-17 10:51:04 obachman Exp $ */ 10 10 11 11 /* includes */ … … 195 195 ring rCurrRingAssure_dp_S(); 196 196 ring rCurrRingAssure_dp_C(); 197 ring rCurrRingAssure_C_dp(); 197 198 // return the max-comonent wchich has syzIndex i 198 199 // Assume: i<= syzIndex_limit
Note: See TracChangeset
for help on using the changeset viewer.