Changeset 499ab0 in git
- Timestamp:
- Oct 8, 2004, 8:16:31 PM (20 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 22c0e6e2df6d5097c4861139e20b6f8b8ba7e6e0
- Parents:
- 2411cb4b5f99b433d306e20603f800cc61d69fe0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/tgb.cc
r2411cb4 r499ab0 3539 3539 } 3540 3540 } 3541 Print("is homog:%d",c->is_homog); 3541 3542 void* h; 3542 3543 poly hp; … … 3719 3720 } 3720 3721 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 3734 3723 for(i=0;i<=c->strat->sl;i++){ 3735 3724 if (!c->strat->S[i]) continue; … … 3742 3731 } 3743 3732 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 } 3744 3768 } 3745 3769 omfree(c->rep);
Note: See TracChangeset
for help on using the changeset viewer.