Changeset 6b02216 in git
- Timestamp:
- Jan 8, 2018, 2:26:25 PM (5 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 601afa9526529f410b2b1c6caed7369d8c6c8ab0fbd9e6f0afef39d078d85fd25c80563f6b53084c
- Parents:
- ccc9976fe27edd5c59e8fdb762ab7310fe7bc55e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
rccc9976 r6b02216 2303 2303 intvec *module_w=(intvec*)atGet(u,"isHomog",INTVEC_CMD); 2304 2304 intvec *iv=hFirstSeries((ideal)u->Data(),module_w,currRing->qideal); 2305 if (errorreported) return TRUE; 2306 2305 2307 switch((int)(long)v->Data()) 2306 2308 { … … 5697 5699 intvec *module_w=(intvec *)atGet(u,"isHomog",INTVEC_CMD); 5698 5700 intvec *iv=hFirstSeries((ideal)u->Data(),module_w,currRing->qideal,wdegree); 5701 if (errorreported) return TRUE; 5702 5699 5703 switch((int)(long)v->Data()) 5700 5704 { -
kernel/combinatorics/hilb.cc
rccc9976 r6b02216 111 111 memcpy(pon, pol, l * sizeof(int)); 112 112 if (l > x) 113 { 113 {/*pon[i] -= pol[i - x];*/ 114 114 for (i = x; i < l; i++) 115 pon[i] -= pol[i - x]; 115 { int64 t=pon[i]; 116 int64 t2=pol[i - x]; 117 t-=t2; 118 if ((t>=INT_MIN)&&(t<=INT_MAX)) pon[i]=t; 119 else if (!errorreported) WerrorS("int overflow in hilb 1"); 120 } 116 121 for (i = l; i < ln; i++) 117 pon[i] = -pol[i - x]; 122 { /*pon[i] = -pol[i - x];*/ 123 int64 t= -pol[i - x]; 124 if ((t>=INT_MIN)&&(t<=INT_MAX)) pon[i]=t; 125 else if (!errorreported) WerrorS("int overflow in hilb 2"); 126 } 118 127 } 119 128 else … … 142 151 j = Q0[Nv + 1]; 143 152 for (i = 0; i < l; i++) 144 pl[i + j] += p[i]; 153 { /* pl[i + j] += p[i];*/ 154 int64 t=pl[i+j]; 155 int64 t2=p[i]; 156 t+=t2; 157 if ((t>=INT_MIN)&&(t<=INT_MAX)) pl[i+j]=t; 158 else if (!errorreported) WerrorS("int overflow in hilb 3"); 159 } 145 160 x = pure[var[1]]; 146 161 if (x!=0) … … 148 163 j += x; 149 164 for (i = 0; i < l; i++) 150 pl[i + j] -= p[i]; 165 { /* pl[i + j] -= p[i];*/ 166 int64 t=pl[i+j]; 167 int64 t2=p[i]; 168 t-=t2; 169 if ((t>=INT_MIN)&&(t<=INT_MAX)) pl[i+j]=t; 170 else if (!errorreported) WerrorS("int overflow in hilb 4"); 171 } 151 172 } 152 173 j += l; … … 1399 1420 1400 1421 intvec *hseries1 = hFirstSeries(S, modulweight, Q, wdegree, tailRing); 1422 if (errorreported) return; 1401 1423 1402 1424 hPrintHilb(hseries1);
Note: See TracChangeset
for help on using the changeset viewer.