Changeset c57134 in git
- Timestamp:
- May 18, 2006, 4:40:40 PM (17 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 0196493023ab83f32542ed429da0d4c721b4c5c8
- Parents:
- 3960d849adde43bca93b4a76aa305386c4f6fe33
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/tgb.cc
r3960d8 rc57134 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: tgb.cc,v 1.8 8 2006-05-16 08:38:39 bricken Exp $ */7 /* $Id: tgb.cc,v 1.89 2006-05-18 14:40:39 bricken Exp $ */ 8 8 /* 9 9 * ABSTRACT: slimgb and F4 implementation … … 391 391 if(l<0) 392 392 l=pLength(p); 393 if(c->is _char0) {394 if( (pLexOrder) &&(!c->is_homog)){393 if(c->isDifficultField) { 394 if(c->eliminationProblem){ 395 395 int cs; 396 396 number coef=pGetCoeff(p); … … 412 412 return r; 413 413 } 414 if( (pLexOrder) &&(!c->is_homog)) return pELength(p,c,l);414 if(c->eliminationProblem) return pELength(p,c,l); 415 415 return l; 416 416 } … … 430 430 //case, you have to look on coefs 431 431 wlen_type s=0; 432 if (c->is _char0){432 if (c->isDifficultField){ 433 433 //s=kSBucketLength(bucket,this->p); 434 if( (pLexOrder) &&(!c->is_homog)){434 if(c->eliminationProblem){ 435 435 int cs; 436 436 number coef; … … 467 467 else 468 468 { 469 if( (pLexOrder) &&(!c->is_homog))469 if(c->eliminationProblem) 470 470 //if (false) 471 471 s=kEBucketLength(this->bucket,this->p,c); … … 759 759 assume(len==pLength(h)); 760 760 int i; 761 // if (c->is _char0)762 // i=simple_posInS(c->strat,h,pSLength(h,len),c->is _char0);761 // if (c->isDifficultField) 762 // i=simple_posInS(c->strat,h,pSLength(h,len),c->isDifficultField); 763 763 // else 764 // i=simple_posInS(c->strat,h,len,c->is _char0);764 // i=simple_posInS(c->strat,h,len,c->isDifficultField); 765 765 766 766 LObject P; memset(&P,0,sizeof(P)); … … 1089 1089 } 1090 1090 static wlen_type pair_weighted_length(int i, int j, slimgb_alg* c){ 1091 if ((c->is _char0) && (pLexOrder) &&(!c->is_homog)) {1091 if ((c->isDifficultField) && (c->eliminationProblem)) { 1092 1092 int c1=slim_nsize(p_GetCoeff(c->S->m[i],c->r),c->r); 1093 1093 int c2=slim_nsize(p_GetCoeff(c->S->m[j],c->r),c->r); … … 1105 1105 1106 1106 } 1107 if (c->is _char0) {1107 if (c->isDifficultField) { 1108 1108 //int cs=slim_nsize(p_GetCoeff(c->S->m[i],c->r),c->r)+ 1109 1109 // slim_nsize(p_GetCoeff(c->S->m[j],c->r),c->r); … … 1126 1126 } 1127 1127 } 1128 if ( (pLexOrder) &&(!c->is_homog)) {1128 if (c->eliminationProblem) { 1129 1129 1130 1130 return (c->weighted_lengths[i]+c->weighted_lengths[j]-2); … … 1834 1834 1835 1835 if (!c->nc) { 1836 if ( TEST_OPT_REDTAIL){1836 if ((TEST_OPT_REDTAIL)&&(c->S->rank<=1)){ 1837 1837 p=redNFTail(p,c->strat->sl,c->strat, 0); 1838 1838 } else { … … 2121 2121 } 2122 2122 } 2123 eliminationProblem=((!(is_homog))&&((pLexOrder))); 2123 2124 // Print("is homog:%d",c->is_homog); 2124 2125 void* h; … … 2129 2130 extended_product_crit=0; 2130 2131 if (rField_is_Zp(r)) 2131 is _char0=FALSE;2132 isDifficultField=FALSE; 2132 2133 else 2133 is _char0=TRUE;2134 isDifficultField=TRUE; 2134 2135 //not fully correct 2135 2136 //(rChar()==0); 2136 2137 F4_mode=F4; 2137 this->doubleSugar=TRUE; 2138 if ((!F4_mode)&&(!is_homog) &&(pLexOrder)){ 2139 this->doubleSugar=TRUE; 2140 } 2141 else this->doubleSugar=FALSE; 2138 2142 2139 reduction_steps=0; 2143 2140 last_index=-1; … … 2167 2164 this->n=0; 2168 2165 T_deg=(int*) omalloc(n*sizeof(int)); 2169 if( (!(is_homog)) &&(pLexOrder))2166 if(eliminationProblem) 2170 2167 T_deg_full=(int*) omalloc(n*sizeof(int)); 2171 2168 else … … 2214 2211 strat->S=strat->Shdl->m; 2215 2212 strat->lenS=(int*)omAlloc0(i*sizeof(int)); 2216 if((is _char0)||((pLexOrder) &&(!is_homog)))2213 if((isDifficultField)||(eliminationProblem)) 2217 2214 strat->lenSw=(wlen_type*)omAlloc0(i*sizeof(wlen_type)); 2218 2215 else -
kernel/tgb_internal.h
r3960d8 rc57134 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: tgb_internal.h,v 1.3 8 2006-05-16 08:38:39bricken Exp $ */7 /* $Id: tgb_internal.h,v 1.39 2006-05-18 14:40:40 bricken Exp $ */ 8 8 /* 9 9 * ABSTRACT: tgb internal .h file … … 146 146 int extended_product_crit; 147 147 int average_length; 148 BOOLEAN is _char0;148 BOOLEAN isDifficultField; 149 149 BOOLEAN is_homog; 150 BOOLEAN doubleSugar; 150 151 BOOLEAN eliminationProblem; 151 152 BOOLEAN F4_mode; 152 153 BOOLEAN nc;
Note: See TracChangeset
for help on using the changeset viewer.