Changeset 36d61f0 in git
- Timestamp:
- Aug 1, 2016, 2:31:54 PM (7 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 2ca98b322f5cd4132f63aa412234febf9a402043bdea13167433c632044731eec2fb12149aa74a00
- Parents:
- 7b03761efc366bdaf44e4ac64daa8ae01254efc5
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/Short/ok_s.lst
r7b0376 r36d61f0 61 61 bug_tr759 62 62 bug_tr760_761 63 bug_tr767 63 64 bug_genus_etc 64 65 conv_bi -
kernel/GBEngine/shiftgb.cc
r7b0376 r36d61f0 164 164 165 165 poly q = NULL; 166 poly pp = p; // pCopy(p);166 poly pp = p; 167 167 while (pp!=NULL) 168 168 { 169 q = p_Add_q(q, pmLPshift(pp,sh,uptodeg,lV),currRing);169 poly h=pp; 170 170 pIter(pp); 171 }172 /* delete pp? */173 p_Delete(&p,currRing);174 /* int version: returns TRUE if it was successful */171 pNext(h)=NULL; 172 h=pmLPshift(h,sh,uptodeg,lV); 173 q = p_Add_q(q, h,currRing); 174 } 175 175 return(q); 176 176 } … … 202 202 int *s=(int *)omAlloc0((currRing->N+1)*sizeof(int)); 203 203 pGetExpV(p,e); 204 number c = pGetCoeff(p);205 204 int j; 206 205 for (j=1; j<=currRing->N; j++) … … 211 210 } 212 211 } 213 poly m = pOne(); 214 pSetExpV(m,s); 212 pSetExpV(p,s); 215 213 /* pSetm(m); */ /* done in the pSetExpV */ 216 /* think on the component */217 pSetCoeff0(m,c);218 214 freeT(e, currRing->N); 219 215 freeT(s, currRing->N); 220 return( m);216 return(p); 221 217 } 222 218
Note: See TracChangeset
for help on using the changeset viewer.