Changeset 499ab0 in git


Ignore:
Timestamp:
Oct 8, 2004, 8:16:31 PM (20 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
22c0e6e2df6d5097c4861139e20b6f8b8ba7e6e0
Parents:
2411cb4b5f99b433d306e20603f800cc61d69fe0
Message:
*bricken: minimal basis output


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

Legend:

Unmodified
Added
Removed
  • Singular/tgb.cc

    r2411cb4 r499ab0  
    35393539    }
    35403540  }
     3541  Print("is homog:%d",c->is_homog);
    35413542  void* h;
    35423543  poly hp;
     
    37193720  }
    37203721  int deleted_form_c_s=0;
    3721 
    3722   for(i=0;i<c->n;i++){
    3723     if (c->rep[i]!=i){
    3724       for(j=0;j<=c->strat->sl;j++){
    3725         if(c->strat->S[j]==c->S->m[i]){
    3726           c->strat->S[j]=NULL;
    3727           break;
    3728         }
    3729       }
    3730 //      PrintS("R_delete");
    3731       pDelete(&c->S->m[i]);
    3732     }
    3733   }
     3722 
    37343723  for(i=0;i<=c->strat->sl;i++){
    37353724    if (!c->strat->S[i]) continue;
     
    37423731    }
    37433732    if(!found) pDelete(&c->strat->S[i]);
     3733  }
     3734//   for(i=0;i<c->n;i++){
     3735//     if (c->rep[i]!=i){
     3736// //       for(j=0;j<=c->strat->sl;j++){
     3737// //   if(c->strat->S[j]==c->S->m[i]){
     3738// //     c->strat->S[j]=NULL;
     3739// //     break;
     3740// //   }
     3741// //       }
     3742// //      PrintS("R_delete");
     3743//       pDelete(&c->S->m[i]);
     3744//     }
     3745//   }
     3746
     3747//  qsort(c->S->m, c->n,sizeof(poly),pLmCmp_func);
     3748  for(i=0;i<c->n;i++)
     3749  {
     3750    assume(c->S->m[i]!=NULL);
     3751    for(j=0;j<c->n;j++)
     3752    {
     3753      if((c->S->m[j]==NULL)||(i==j))
     3754        continue;
     3755      assume(p_LmShortDivisibleBy(c->S->m[j],c->short_Exps[j],
     3756                               c->S->m[i],~c->short_Exps[i],
     3757                                   c->r)==p_LmDivisibleBy(c->S->m[j],
     3758                                                        c->S->m[i],
     3759                                                          c->r));
     3760      if (p_LmShortDivisibleBy(c->S->m[j],c->short_Exps[j],
     3761                               c->S->m[i],~c->short_Exps[i],
     3762                                   c->r))
     3763      {
     3764        pDelete(&c->S->m[i]);
     3765        break;
     3766      }
     3767    }
    37443768  }
    37453769  omfree(c->rep);
Note: See TracChangeset for help on using the changeset viewer.