Changeset 4c80eb in git for kernel/tgb.cc


Ignore:
Timestamp:
Feb 20, 2006, 2:14:00 PM (18 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
abfc3bece5f42e6e4907d3d0719efc6021cb6a93
Parents:
839ec19c4ad0dc6a59849ee222f43327491e54d6
Message:
*bricken: some optimizations


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

Legend:

Unmodified
Added
Removed
  • kernel/tgb.cc

    r839ec1 r4c80eb  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: tgb.cc,v 1.60 2006-02-20 12:40:13 bricken Exp $ */
     7/* $Id: tgb.cc,v 1.61 2006-02-20 13:13:59 bricken Exp $ */
    88/*
    99* ABSTRACT: slimgb and F4 implementation
     
    713713
    714714
    715 static int add_to_reductors(slimgb_alg* c, poly h, int len){
     715static int add_to_reductors(slimgb_alg* c, poly h, int len, BOOLEAN simplified){
    716716  //inDebug(h);
    717717  assume(lenS_correct(c->strat));
     
    727727  P.p=h; /*p_Copy(h,c->r);*/
    728728  P.FDeg=pFDeg(P.p,c->r);
    729  
    730   if (!rField_is_Zp(c->r)){
    731     pCleardenom(P.p);
    732     pContent(P.p); //is a duplicate call, but belongs here
    733    
    734   }
    735   else                     
    736     pNorm(P.p);
    737   pNormalize(P.p);
     729  if (!simplified){
     730      if (!rField_is_Zp(c->r)){
     731        pCleardenom(P.p);
     732        pContent(P.p); //is a duplicate call, but belongs here
     733       
     734      }
     735      else                     
     736        pNorm(P.p);
     737    pNormalize(P.p);
     738  }
    738739  wlen_type pq=pQuality(h,c,len);
    739740  i=simple_posInS(c->strat,h,len,pq);
     
    10791080  else                     
    10801081    pNorm(h);
     1082  pNormalize(h);
     1083 
    10811084  c->weighted_lengths[i]=pQuality(h, c, c->lengths[i]);
    10821085  c->gcd_of_terms[i]=got;
     
    12791282  nodes=NULL;
    12801283
    1281   add_to_reductors(c, h, c->lengths[c->n-1]);
     1284  add_to_reductors(c, h, c->lengths[c->n-1], TRUE);
    12821285  //i=posInS(c->strat,c->strat->sl,h,0 ecart);
    12831286  if (!(c->nc)){
Note: See TracChangeset for help on using the changeset viewer.