Changeset 0bce291 in git


Ignore:
Timestamp:
Jan 14, 2003, 2:51:39 PM (21 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
9dae4f015d0bb4c669b1bfdac5ecbc3ecaf949b8
Parents:
990feedb5484f38fbd5aa2fc693a21538b5f3f8d
Message:
*bricken: total degree instead of pFDeg


git-svn-id: file:///usr/local/Singular/svn/trunk@6419 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tgb.cc

    r990fee r0bce291  
    196196  pLcm(c->S->m[i], c->S->m[j], lm);
    197197  pSetm(lm);
    198   int deciding_deg= pFDeg(lm);
     198  int deciding_deg= pTotaldegree(lm);
    199199  int* i_con =make_connections(i,j,lm,c);
    200200  p_Delete(&lm,c->r);
     
    454454  pLcm(c->S->m[i], c->S->m[j], lm);
    455455  pSetm(lm);
    456   int deciding_deg= pFDeg(lm);
     456  int deciding_deg= pTotaldegree(lm);
    457457  int* i_con =make_connections(i,j,lm,c);
    458458  int z=0;
     
    481481  pSetm(lm);
    482482  poly short_s;
    483   curr_deg=pFDeg(lm);
     483  curr_deg=pTotaldegree(lm);
    484484  int_pair_node* last=NULL;
    485485
     
    488488      pLcm(c->S->m[i_con[m]], c->S->m[j_con[n]], lm);
    489489      pSetm(lm);
    490       if (pFDeg(lm)>=deciding_deg)
     490      if (pTotaldegree(lm)>=deciding_deg)
    491491      {
    492492        soon_t_rep(i_con[m],j_con[n],c);
     
    531531      }
    532532#endif
    533       int comp_deg(pFDeg(short_s));
     533      int comp_deg(pTotaldegree(short_s));
    534534      p_Delete(&short_s,c->r);
    535535      if ((comp_deg<curr_deg)
     
    583583  pLcm(c->S->m[i], c->S->m[j], lm);
    584584  pSetm(lm);
    585   int deciding_deg= pFDeg(lm);
     585  int deciding_deg= pTotaldegree(lm);
    586586  int* i_con =make_connections(i,j,lm,c);
    587587  int z=0;
     
    589589  for (int n=0;((n<c->n) && (i_con[n]>=0));n++){
    590590    if (i_con[n]==j){
    591       //       curr_deg=pFDeg(lm);
     591      //       curr_deg=pTotaldegree(lm);
    592592      //       for(int z1=0;((z1<c->n) && (i_con[z1]>=0));z1++)
    593593      //         for (int z2=z1+1;((z2<c->n)&&(i_con[z2]>=0));z2++)
     
    595595      //           pLcm(c->S->m[i_con[z1]], c->S->m[i_con[z2]], lm);
    596596      //           pSetm(lm);
    597       //           if (pFDeg(lm)==curr_deg)
     597      //           if (pTotaldegree(lm)==curr_deg)
    598598      //             now_t_rep(i_con[z1],i_con[z2],c);
    599599      //         }
     
    621621  pSetm(lm);
    622622  poly short_s;
    623   curr_deg=pFDeg(lm);
     623  curr_deg=pTotaldegree(lm);
    624624
    625625  for (int n=0;((n<c->n) && (j_con[n]>=0));n++){
     
    627627      pLcm(c->S->m[i_con[m]], c->S->m[j_con[n]], lm);
    628628      pSetm(lm);
    629       if (pFDeg(lm)>=deciding_deg)
     629      if (pTotaldegree(lm)>=deciding_deg)
    630630      {
    631631        //soon_t_rep(i_con[m],j_con[n],c);
     
    670670      }
    671671#endif
    672       int comp_deg(pFDeg(short_s));
     672      int comp_deg(pTotaldegree(short_s));
    673673      p_Delete(&short_s,c->r);
    674674      if ((comp_deg<curr_deg)
     
    699699{
    700700  ideal I=c->S;
    701   int s=pFDeg(bound);
     701  int s=pTotaldegree(bound);
    702702  int* cans=(int*) omalloc(c->n*sizeof(int));
    703703  int* connected=(int*) omalloc(c->n*sizeof(int));
     
    741741{
    742742  ideal I=c->S;
    743   int s=pFDeg(bound);
     743  int s=pTotaldegree(bound);
    744744  int* cans=(int*) omalloc(c->n*sizeof(int));
    745745  int* connected=(int*) omalloc(c->n*sizeof(int));
     
    993993      si->j=-1;
    994994      si->expected_length=pLength(I->m[i]);
    995       si->deg=pFDeg(I->m[i]);
     995      si->deg=pTotaldegree(I->m[i]);
    996996      si->lcm_of_lm=I->m[i];
    997997      si->next=NULL;
     
    10661066  int spc=0;
    10671067  c->T_deg=(int*) omrealloc(c->T_deg,c->n*sizeof(int));
    1068   c->T_deg[i]=pFDeg(h);
     1068  c->T_deg[i]=pTotaldegree(h);
    10691069  hp=omrealloc(c->rep, c->n *sizeof(int));
    10701070  if (hp!=NULL){
     
    11531153        s->j=min(i,j);
    11541154        s->expected_length=c->lengths[i]+c->lengths[j]-2;
    1155         s->deg=pFDeg(short_s);
     1155        s->deg=pTotaldegree(short_s);
    11561156        poly lm=pOne();
    11571157
     
    21832183
    21842184  poly h=f->next;
    2185   int n=pFDeg(h);
     2185  int n=pTotaldegree(h);
    21862186  int i=0;
    21872187  while((i<2)){
     
    21902190    h=h->next;
    21912191    if (h!=NULL){
    2192       n=min(n,pFDeg(h));
     2192      n=min(n,pTotaldegree(h));
    21932193    }
    21942194    i++;
Note: See TracChangeset for help on using the changeset viewer.