Changeset e09d5a in git
- Timestamp:
- Apr 10, 2003, 3:56:49 PM (21 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 21fe24241d74f6999ddc47a5424063860673de84
- Parents:
- 70f7623561091e7888c5ba63ec153d9d08384194
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/tgb.cc
r70f762 re09d5a 1087 1087 //programming reasons 1088 1088 int i=0; 1089 red_object* buf=(red_object*) omalloc(PAR_N*sizeof(red_object)); 1089 1090 poly* p=(poly*) omalloc((PAR_N+1)*sizeof(poly));//nullterminated 1091 1090 1092 int curr_deg=-1; 1091 1093 while(i<PAR_N){ … … 1112 1114 if(s->i>=0) 1113 1115 now_t_rep(s->j,s->i,c); 1116 number coef; 1117 int mlen=pLength(h); 1118 h=redNF2(h,c,mlen,coef,2); 1119 redTailShort(h,c->strat); 1120 nDelete(&coef); 1121 1114 1122 free_sorted_pair_node(s,c->r); 1115 1123 if(!h) continue; 1116 1124 int len=pLength(h); 1117 buf[i].p=h; 1118 buf[i].sev=pGetShortExpVector(h); 1119 buf[i].sum=NULL; 1120 buf[i].bucket = kBucketCreate(currRing); 1121 kBucketInit(buf[i].bucket,buf[i].p,len); 1125 p[i]=h; 1126 1122 1127 i++; 1123 1128 } 1129 p[i]=NULL; 1130 1131 red_object* buf=(red_object*) omalloc(i*sizeof(red_object)); 1124 1132 c->normal_forms+=i; 1133 int j; 1134 for(j=0;j<i;j++){ 1135 buf[j].p=p[j]; 1136 buf[j].sev=pGetShortExpVector(p[j]); 1137 buf[j].sum=NULL; 1138 buf[j].bucket = kBucketCreate(currRing); 1139 int len=pLength(p[j]); 1140 kBucketInit(buf[j].bucket,buf[j].p,len); 1141 } 1142 omfree(p); 1125 1143 qsort(buf,i,sizeof(red_object),red_object_better_gen); 1126 1144 // Print("\ncurr_deg:%i\n",curr_deg); 1127 1145 Print("M[%i, ",i); 1128 1146 multi_reduction(buf, i, c); 1129 Print("%i]",i); 1130 int j; 1147 Print("%i]",i); 1131 1148 // for(j=0;j<i;j++){ 1132 1149 // if(buf[j].p==NULL) PrintS("\n ZERO ALERT \n");
Note: See TracChangeset
for help on using the changeset viewer.