Changeset a60a21 in git


Ignore:
Timestamp:
May 19, 2006, 12:30:47 PM (17 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
11de3e8f11bec7f9b6008145cb455f4bff59972c
Parents:
3738560c53e0c131ed96fee80506af636585777c
Message:
*bricken: degbound, hopefully working


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

Legend:

Unmodified
Added
Removed
  • kernel/tgb.cc

    r373856 ra60a21  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: tgb.cc,v 1.89 2006-05-18 14:40:39 bricken Exp $ */
     7/* $Id: tgb.cc,v 1.90 2006-05-19 10:30:47 bricken Exp $ */
    88/*
    99* ABSTRACT: slimgb and F4 implementation
     
    20972097}
    20982098slimgb_alg::slimgb_alg(ideal I, int syz_comp,BOOLEAN F4){
    2099 
     2099  completed=FALSE;
    21002100  this->syz_comp=syz_comp;
    21012101  r=currRing;
     
    22542254}
    22552255slimgb_alg::~slimgb_alg(){
     2256  if (!(completed)){
     2257      int piter;
     2258      for(piter=0;piter<=pair_top;piter++){
     2259        sorted_pair_node* s=apairs[piter];
     2260        if (s->i<0){
     2261            //delayed element
     2262            add_to_basis_ideal_quotient(s->lcm_of_lm, this, NULL);
     2263           
     2264        }
     2265        free_sorted_pair_node(s,r);
     2266        apairs[piter]=NULL;
     2267      }
     2268  }
    22562269  id_Delete(&add_later,r);
    22572270  int i,j;
     
    23582371//   }
    23592372
    2360 
     2373  if (completed){
    23612374  for(i=0;i<c->n;i++)
    23622375  {
     
    23812394    }
    23822395  }
     2396  }
    23832397  omfree(c->short_Exps);
    23842398
     
    24242438
    24252439
    2426   while(c->pair_top>=0)
     2440  while ((c->pair_top>=0) && ((!(TEST_OPT_DEGBOUND)) || (c->apairs[c->pair_top]->deg<=Kstd1_deg)))
    24272441  {
    24282442    if(F4_mode)
     
    24312445      go_on(c);
    24322446  }
     2447  if (c->pair_top<0)
     2448    c->completed=TRUE;
    24332449  I=c->S;
    24342450  delete c;
  • kernel/tgb_internal.h

    r373856 ra60a21  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: tgb_internal.h,v 1.39 2006-05-18 14:40:40 bricken Exp $ */
     7/* $Id: tgb_internal.h,v 1.40 2006-05-19 10:30:47 bricken Exp $ */
    88/*
    99 * ABSTRACT: tgb internal .h file
     
    147147  int average_length;
    148148  BOOLEAN isDifficultField;
     149  BOOLEAN completed;
    149150  BOOLEAN is_homog;
    150151 
Note: See TracChangeset for help on using the changeset viewer.