Changeset 6e56de in git
- Timestamp:
- Aug 24, 2000, 1:21:47 PM (23 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 51e993f9b344a8396d1aacab475782ed749fc581
- Parents:
- 660ad3261b8221e209ee2df3ffc488c824260573
- Location:
- Singular
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys-impl.h
r660ad32 r6e56de 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: polys-impl.h,v 1.4 6 2000-08-14 12:56:44 obachmanExp $ */6 /* $Id: polys-impl.h,v 1.47 2000-08-24 11:21:44 Singular Exp $ */ 7 7 8 8 /*************************************************************** … … 34 34 { 35 35 #ifdef HAVE_SHIFTED_EXPONENTS 36 long e[VARS +1];37 36 unsigned long l[VARS +1]; 38 37 #else … … 102 101 #define _pSetCoeff0(p,n) (p)->coef=n 103 102 103 //#ifdef HAVE_SHIFTED_EXPONENTS 104 //#define _pGetOrder(p) ((p)->exp.l[currRing->pOrdIndex]-0x40000000) 105 //#else 104 106 #define _pGetOrder(p) ((p)->exp.l[currRing->pOrdIndex]) 107 //#endif 105 108 106 109 #if defined(PDEBUG) && PDEBUG > 1 … … 254 257 #endif // defined(PDEBUG) && PDEBUG > 1 255 258 259 #ifndef HAVE_SHIFTED_EXPONENTS 260 256 261 #define _pGetComp(p) ((p)->exp.e[_pCompIndex]) 257 262 #define _pIncrComp(p) _pGetComp(p)++ 258 263 #define _pRingGetComp(r,p) ((p)->exp.e[_pRingCompIndex(r)]) 259 264 260 #ifndef HAVE_SHIFTED_EXPONENTS261 265 inline Exponent_t _pGetExpSum(poly p1, poly p2, int i) 262 266 { … … 269 273 return p1->exp.e[index] - p2->exp.e[index]; 270 274 } 271 #else 275 276 #else //--------------------------------------------- 277 278 #define _pGetComp(p) ((p)->exp.l[_pCompIndex]) 279 #define _pIncrComp(p) _pGetComp(p)++ 280 #define _pRingGetComp(r,p) ((p)->exp.l[_pRingCompIndex(r)]) 281 272 282 inline Exponent_t _pGetExpSum(poly p1, poly p2, int i) 273 283 { -
Singular/polys.cc
r660ad32 r6e56de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys.cc,v 1.5 5 2000-08-14 12:56:45 obachmanExp $ */4 /* $Id: polys.cc,v 1.56 2000-08-24 11:21:45 Singular Exp $ */ 5 5 6 6 /* … … 93 93 a=o->data.dp.start; 94 94 e=o->data.dp.end; 95 long ord=0; 95 long ord=0; //0x40000000; 96 96 for(int i=a;i<=e;i++) ord+=pGetExp(p,i); 97 97 p->exp.l[o->data.dp.place]=ord; … … 104 104 e=o->data.wp.end; 105 105 int *w=o->data.wp.weights; 106 long ord=0; 106 long ord=0; //0x40000000; 107 107 for(int i=a;i<=e;i++) ord+=pGetExp(p,i)*w[i-a]; 108 108 p->exp.l[o->data.wp.place]=ord; … … 115 115 e=o->data.cp.end; 116 116 int pl=o->data.cp.place; 117 #ifdef HAVE_SHIFTED_EXPONENTS 118 for(int i=a;i<=e;i++) { p->exp.l[pl]=pGetExp(p,i); pl++; } 119 #else 117 120 for(int i=a;i<=e;i++) { p->exp.e[pl]=pGetExp(p,i); pl++; } 121 #endif 118 122 break; 119 123 } … … 195 199 e=o->data.cp.end; 196 200 int pl=o->data.cp.place; 201 #ifdef HAVE_SHIFTED_EXPONENTS 202 for(int i=a;i<=e;i++) { p->exp.l[pl]=pGetExp(p,i); pl++; } 203 #else 197 204 for(int i=a;i<=e;i++) { p->exp.e[pl]=pGetExp(p,i); pl++; } 205 #endif 198 206 break; 199 207 } -
Singular/polys1.cc
r660ad32 r6e56de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.4 1 2000-08-22 13:35:40Singular Exp $ */4 /* $Id: polys1.cc,v 1.42 2000-08-24 11:21:45 Singular Exp $ */ 5 5 6 6 /* … … 437 437 poly pPower(poly p, int i) 438 438 { 439 poly rc=NULL; 440 439 441 if (i==0) 442 { 443 pDelete(&p); 440 444 return pOne(); 441 442 poly rc=NULL; 445 } 443 446 444 447 if(p!=NULL) … … 459 462 switch (i) 460 463 { 461 case 0: 462 { 463 rc=pOne(); 464 #ifdef DRING 465 if ((pDRING) && (pdDFlag(p)==1)) 466 { 467 pdSetDFlag(rc,1); 468 } 469 #endif 470 pDelete(&p); 471 break; 472 } 464 // cannot happen, see above 465 // case 0: 466 // { 467 // rc=pOne(); 468 //#ifdef DRING 469 // if ((pDRING) && (pdDFlag(p)==1)) 470 // { 471 // pdSetDFlag(rc,1); 472 // } 473 //#endif 474 // pDelete(&p); 475 // break; 476 // } 473 477 case 1: 474 478 rc=p; … … 566 570 last=f; 567 571 } 568 //res = pAdd(res, f);569 572 } 570 573 } -
Singular/ring.cc
r660ad32 r6e56de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.10 5 2000-08-22 09:03:21Singular Exp $ */4 /* $Id: ring.cc,v 1.106 2000-08-24 11:21:46 Singular Exp $ */ 5 5 6 6 /* … … 3233 3233 while(p!=NULL) 3234 3234 { 3235 #ifndef HAVE_SHIFTED_EXPONENTS 3235 3236 Print("exp.e[0..%d]\n",currRing->ExpESize-1); 3236 3237 for(i=0;i<currRing->ExpESize;i++) 3237 3238 Print("%d ",p->exp.e[i]); 3239 #endif 3238 3240 Print("\nexp.l[0..%d]\n",currRing->ExpLSize-1); 3239 3241 for(i=0;i<currRing->ExpLSize;i++) -
Singular/structs.h
r660ad32 r6e56de 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: structs.h,v 1.3 3 2000-08-18 15:42:10Singular Exp $ */6 /* $Id: structs.h,v 1.34 2000-08-24 11:21:47 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 142 142 typedef struct smprec sm_prec; 143 143 typedef sm_prec * smpoly; 144 struct smprec{ 144 struct smprec 145 { 145 146 smpoly n; // the next element 146 147 int pos; // position -
Singular/syz1.cc
r660ad32 r6e56de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz1.cc,v 1.6 0 2000-08-14 12:56:54 obachmanExp $ */4 /* $Id: syz1.cc,v 1.61 2000-08-24 11:21:47 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: resolutions … … 1257 1257 tso.lcm = p = nPm[ii]; 1258 1258 nPm[ii] = NULL; 1259 //#ifdef HAVE_SHIFTED_EXPONENTS 1260 //tso.order = pTotaldegree(p); 1261 //p->exp.l[currRing->pOrdIndex]=tso.order+0x40000000; 1262 //#else 1259 1263 tso.order = pGetOrder(p) = pTotaldegree(p); 1264 //#endif 1260 1265 if ((syzstr->cw!=NULL) && (index>0) && (pGetComp(q)>0)) 1261 1266 {
Note: See TracChangeset
for help on using the changeset viewer.