Changeset c57134 in git


Ignore:
Timestamp:
May 18, 2006, 4:40:40 PM (17 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
0196493023ab83f32542ed429da0d4c721b4c5c8
Parents:
3960d849adde43bca93b4a76aa305386c4f6fe33
Message:
*bricken: code clean up


git-svn-id: file:///usr/local/Singular/svn/trunk@9147 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/tgb.cc

    r3960d8 rc57134  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: tgb.cc,v 1.88 2006-05-16 08:38:39 bricken Exp $ */
     7/* $Id: tgb.cc,v 1.89 2006-05-18 14:40:39 bricken Exp $ */
    88/*
    99* ABSTRACT: slimgb and F4 implementation
     
    391391  if(l<0)
    392392    l=pLength(p);
    393   if(c->is_char0) {
    394     if((pLexOrder) &&(!c->is_homog)){
     393  if(c->isDifficultField) {
     394    if(c->eliminationProblem){
    395395      int cs;
    396396      number coef=pGetCoeff(p);
     
    412412    return r;
    413413  }
    414   if((pLexOrder) &&(!c->is_homog)) return pELength(p,c,l);
     414  if(c->eliminationProblem) return pELength(p,c,l);
    415415  return l;
    416416}
     
    430430    //case, you have to look on coefs
    431431    wlen_type s=0;
    432     if (c->is_char0){
     432    if (c->isDifficultField){
    433433      //s=kSBucketLength(bucket,this->p);
    434       if((pLexOrder) &&(!c->is_homog)){
     434      if(c->eliminationProblem){
    435435    int cs;
    436436    number coef;
     
    467467    else
    468468    {
    469       if((pLexOrder) &&(!c->is_homog))
     469      if(c->eliminationProblem)
    470470  //if (false)
    471471  s=kEBucketLength(this->bucket,this->p,c);
     
    759759  assume(len==pLength(h));
    760760  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);
    763763//   else
    764 //     i=simple_posInS(c->strat,h,len,c->is_char0);
     764//     i=simple_posInS(c->strat,h,len,c->isDifficultField);
    765765
    766766  LObject P; memset(&P,0,sizeof(P));
     
    10891089}
    10901090static 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))  {
    10921092        int c1=slim_nsize(p_GetCoeff(c->S->m[i],c->r),c->r);
    10931093        int c2=slim_nsize(p_GetCoeff(c->S->m[j],c->r),c->r);
     
    11051105
    11061106    }
    1107     if (c->is_char0) {
     1107    if (c->isDifficultField) {
    11081108        //int cs=slim_nsize(p_GetCoeff(c->S->m[i],c->r),c->r)+
    11091109        //    slim_nsize(p_GetCoeff(c->S->m[j],c->r),c->r);
     
    11261126            }
    11271127    }
    1128     if ((pLexOrder) &&(!c->is_homog)) {
     1128    if (c->eliminationProblem) {
    11291129
    11301130        return (c->weighted_lengths[i]+c->weighted_lengths[j]-2);
     
    18341834
    18351835    if (!c->nc) {
    1836       if (TEST_OPT_REDTAIL){
     1836      if ((TEST_OPT_REDTAIL)&&(c->S->rank<=1)){
    18371837      p=redNFTail(p,c->strat->sl,c->strat, 0);
    18381838      } else {
     
    21212121    }
    21222122  }
     2123  eliminationProblem=((!(is_homog))&&((pLexOrder)));
    21232124  //  Print("is homog:%d",c->is_homog);
    21242125  void* h;
     
    21292130  extended_product_crit=0;
    21302131  if (rField_is_Zp(r))
    2131     is_char0=FALSE;
     2132    isDifficultField=FALSE;
    21322133  else
    2133     is_char0=TRUE;
     2134    isDifficultField=TRUE;
    21342135  //not fully correct
    21352136  //(rChar()==0);
    21362137  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
    21422139  reduction_steps=0;
    21432140  last_index=-1;
     
    21672164  this->n=0;
    21682165  T_deg=(int*) omalloc(n*sizeof(int));
    2169   if((!(is_homog)) &&(pLexOrder))
     2166  if(eliminationProblem)
    21702167    T_deg_full=(int*) omalloc(n*sizeof(int));
    21712168  else
     
    22142211  strat->S=strat->Shdl->m;
    22152212  strat->lenS=(int*)omAlloc0(i*sizeof(int));
    2216   if((is_char0)||((pLexOrder) &&(!is_homog)))
     2213  if((isDifficultField)||(eliminationProblem))
    22172214    strat->lenSw=(wlen_type*)omAlloc0(i*sizeof(wlen_type));
    22182215  else
  • kernel/tgb_internal.h

    r3960d8 rc57134  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: tgb_internal.h,v 1.38 2006-05-16 08:38:39 bricken Exp $ */
     7/* $Id: tgb_internal.h,v 1.39 2006-05-18 14:40:40 bricken Exp $ */
    88/*
    99 * ABSTRACT: tgb internal .h file
     
    146146  int extended_product_crit;
    147147  int average_length;
    148   BOOLEAN is_char0;
     148  BOOLEAN isDifficultField;
    149149  BOOLEAN is_homog;
    150   BOOLEAN doubleSugar;
     150 
     151  BOOLEAN eliminationProblem;
    151152  BOOLEAN F4_mode;
    152153  BOOLEAN nc;
Note: See TracChangeset for help on using the changeset viewer.