Changeset 0d7584 in git for Singular/iparith.cc
- Timestamp:
- Mar 12, 1999, 11:16:21 AM (25 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- c56a239d65d152c070411a26481b1ea32dae2bc6
- Parents:
- e1fb6deecf2002e305a7f34e78491c3ea101a3b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
re1fb6d r0d7584 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.13 4 1999-03-11 15:58:05Singular Exp $ */4 /* $Id: iparith.cc,v 1.135 1999-03-12 10:16:21 Singular Exp $ */ 5 5 6 6 /* … … 2515 2515 { 2516 2516 assumeStdFlag(v); 2517 intvec *module_w=new intvec(*(intvec*)atGet(v,"isHomog")); 2517 intvec *w=(intvec*)atGet(v,"isHomog"); 2518 intvec *module_w=NULL; 2518 2519 ideal I=(ideal)v->Data(); 2519 2520 int i; 2520 2521 poly p=NULL,po=NULL; 2521 2522 int rk=idRankFreeModule(I); 2522 if (module_w==NULL) 2523 if (w!=NULL) 2524 module_w=new intvec(*w); 2525 else 2523 2526 module_w = new intvec(rk); 2524 2527 for(i=rk;i>0;i--) … … 2536 2539 { 2537 2540 // now po!=NULL, p!=NULL 2538 int d=(pFDeg(po)+(*module_w)[pGetComp(po) ] - pFDeg(p)+ (*module_w)[i]);2541 int d=(pFDeg(po)+(*module_w)[pGetComp(po)-1] - pFDeg(p)+(*module_w)[i-1]); 2539 2542 if (d==0) 2540 2543 d=pComp0(po,p);
Note: See TracChangeset
for help on using the changeset viewer.