Changeset 0bce291 in git
- Timestamp:
- Jan 14, 2003, 2:51:39 PM (21 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 9dae4f015d0bb4c669b1bfdac5ecbc3ecaf949b8
- Parents:
- 990feedb5484f38fbd5aa2fc693a21538b5f3f8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/tgb.cc
r990fee r0bce291 196 196 pLcm(c->S->m[i], c->S->m[j], lm); 197 197 pSetm(lm); 198 int deciding_deg= p FDeg(lm);198 int deciding_deg= pTotaldegree(lm); 199 199 int* i_con =make_connections(i,j,lm,c); 200 200 p_Delete(&lm,c->r); … … 454 454 pLcm(c->S->m[i], c->S->m[j], lm); 455 455 pSetm(lm); 456 int deciding_deg= p FDeg(lm);456 int deciding_deg= pTotaldegree(lm); 457 457 int* i_con =make_connections(i,j,lm,c); 458 458 int z=0; … … 481 481 pSetm(lm); 482 482 poly short_s; 483 curr_deg=p FDeg(lm);483 curr_deg=pTotaldegree(lm); 484 484 int_pair_node* last=NULL; 485 485 … … 488 488 pLcm(c->S->m[i_con[m]], c->S->m[j_con[n]], lm); 489 489 pSetm(lm); 490 if (p FDeg(lm)>=deciding_deg)490 if (pTotaldegree(lm)>=deciding_deg) 491 491 { 492 492 soon_t_rep(i_con[m],j_con[n],c); … … 531 531 } 532 532 #endif 533 int comp_deg(p FDeg(short_s));533 int comp_deg(pTotaldegree(short_s)); 534 534 p_Delete(&short_s,c->r); 535 535 if ((comp_deg<curr_deg) … … 583 583 pLcm(c->S->m[i], c->S->m[j], lm); 584 584 pSetm(lm); 585 int deciding_deg= p FDeg(lm);585 int deciding_deg= pTotaldegree(lm); 586 586 int* i_con =make_connections(i,j,lm,c); 587 587 int z=0; … … 589 589 for (int n=0;((n<c->n) && (i_con[n]>=0));n++){ 590 590 if (i_con[n]==j){ 591 // curr_deg=p FDeg(lm);591 // curr_deg=pTotaldegree(lm); 592 592 // for(int z1=0;((z1<c->n) && (i_con[z1]>=0));z1++) 593 593 // for (int z2=z1+1;((z2<c->n)&&(i_con[z2]>=0));z2++) … … 595 595 // pLcm(c->S->m[i_con[z1]], c->S->m[i_con[z2]], lm); 596 596 // pSetm(lm); 597 // if (p FDeg(lm)==curr_deg)597 // if (pTotaldegree(lm)==curr_deg) 598 598 // now_t_rep(i_con[z1],i_con[z2],c); 599 599 // } … … 621 621 pSetm(lm); 622 622 poly short_s; 623 curr_deg=p FDeg(lm);623 curr_deg=pTotaldegree(lm); 624 624 625 625 for (int n=0;((n<c->n) && (j_con[n]>=0));n++){ … … 627 627 pLcm(c->S->m[i_con[m]], c->S->m[j_con[n]], lm); 628 628 pSetm(lm); 629 if (p FDeg(lm)>=deciding_deg)629 if (pTotaldegree(lm)>=deciding_deg) 630 630 { 631 631 //soon_t_rep(i_con[m],j_con[n],c); … … 670 670 } 671 671 #endif 672 int comp_deg(p FDeg(short_s));672 int comp_deg(pTotaldegree(short_s)); 673 673 p_Delete(&short_s,c->r); 674 674 if ((comp_deg<curr_deg) … … 699 699 { 700 700 ideal I=c->S; 701 int s=p FDeg(bound);701 int s=pTotaldegree(bound); 702 702 int* cans=(int*) omalloc(c->n*sizeof(int)); 703 703 int* connected=(int*) omalloc(c->n*sizeof(int)); … … 741 741 { 742 742 ideal I=c->S; 743 int s=p FDeg(bound);743 int s=pTotaldegree(bound); 744 744 int* cans=(int*) omalloc(c->n*sizeof(int)); 745 745 int* connected=(int*) omalloc(c->n*sizeof(int)); … … 993 993 si->j=-1; 994 994 si->expected_length=pLength(I->m[i]); 995 si->deg=p FDeg(I->m[i]);995 si->deg=pTotaldegree(I->m[i]); 996 996 si->lcm_of_lm=I->m[i]; 997 997 si->next=NULL; … … 1066 1066 int spc=0; 1067 1067 c->T_deg=(int*) omrealloc(c->T_deg,c->n*sizeof(int)); 1068 c->T_deg[i]=p FDeg(h);1068 c->T_deg[i]=pTotaldegree(h); 1069 1069 hp=omrealloc(c->rep, c->n *sizeof(int)); 1070 1070 if (hp!=NULL){ … … 1153 1153 s->j=min(i,j); 1154 1154 s->expected_length=c->lengths[i]+c->lengths[j]-2; 1155 s->deg=p FDeg(short_s);1155 s->deg=pTotaldegree(short_s); 1156 1156 poly lm=pOne(); 1157 1157 … … 2183 2183 2184 2184 poly h=f->next; 2185 int n=p FDeg(h);2185 int n=pTotaldegree(h); 2186 2186 int i=0; 2187 2187 while((i<2)){ … … 2190 2190 h=h->next; 2191 2191 if (h!=NULL){ 2192 n=min(n,p FDeg(h));2192 n=min(n,pTotaldegree(h)); 2193 2193 } 2194 2194 i++;
Note: See TracChangeset
for help on using the changeset viewer.