Changeset a28e0e9 in git


Ignore:
Timestamp:
Feb 17, 1998, 6:53:02 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d35355106936f47026824177f5c7da9941c10518
Parents:
f8b433439cf49b77af81f659c8362ad9ef9dcb19
Message:
* hannes: additional factorization check after redTail (kstdfac.cc)


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

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    rf8b433 ra28e0e9  
     1Tue Feb 17 18:43:11 MET 1998 hannes
     2        * added additional factorization check after redTail
     3          (kstdfac.cc)
     4
    151998-02-17  Olaf Bachmann  <obachman@mathematik.uni-kl.de>
    26
    37        * longalg.cc (napWrite): made it globally available to support
    4         FACTORY_DEBUG_OUT 
     8        FACTORY_DEBUG_OUT
    59
    610        * clapsing.cc (singclap_algdividecontent): inserted
  • Singular/kstdfac.cc

    rf8b433 ra28e0e9  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstdfac.cc,v 1.10 1997-12-03 16:58:47 obachman Exp $ */
     4/* $Id: kstdfac.cc,v 1.11 1998-02-17 17:53:01 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: factorizing alg. of Buchberger
     
    2828#include "lists.h"
    2929#include "ideals.h"
    30 #include "timer.h"
    31 #include "kstdfac.h"
    3230#ifdef COMP_FAST
    3331#include "spSpolyLoop.h"
    3432#endif
    35 
     33#include "timer.h"
     34#include "kstdfac.h"
    3635
    3736#ifdef HAVE_FACTORY
     
    495494      if (strat->P.lcm!=NULL) pFree1(strat->P.lcm);
    496495      int i;
     496      for(i=0;i<IDELEMS(fac);i++)
     497      {
     498        int pos;
     499        if (strat->sl==-1) pos=0;
     500        else pos=posInS(strat->S,strat->sl,fac->m[i]);
     501        if (TEST_OPT_INTSTRATEGY)
     502        {
     503          if (!TEST_OPT_MINRES||(strat->syzComp==0)||(!strat->homog))
     504          {
     505            fac->m[i] = redtailBba(fac->m[i],pos-1,strat);
     506            pCleardenom(fac->m[i]);
     507          }
     508        }
     509        else
     510        {
     511          pNorm(fac->m[i]);
     512          if (!TEST_OPT_MINRES||(strat->syzComp==0)||(!strat->homog))
     513          {
     514            fac->m[i] = redtailBba(fac->m[i],pos-1,strat);
     515          }
     516        }
     517        facdeg=pFDeg(fac->m[i]);
     518        ideal fac2=singclap_factorize(fac->m[i],NULL,1);
     519#ifndef HAVE_LIBFAC_P
     520        if ((fac2!=NULL)&&(IDELEMS(fac2)>1)&&(facdeg!=pFDeg(fac2->m[0])))
     521#else
     522        if ((IDELEMS(fac2)>1)&&(facdeg!=pFDeg(fac2->m[0])))
     523#endif
     524        {
     525          if (TEST_OPT_DEBUG)
     526          {
     527            wrp(fac->m[i]);
     528            Print("-> %d factors, again\n",IDELEMS(fac2));
     529            //jjPRINT_MA0((matrix)fac2,"");
     530          }
     531          pDelete(&(fac->m[i]));
     532          fac->m[i]=fac2->m[0];
     533          pEnlargeSet(&(fac->m),IDELEMS(fac),IDELEMS(fac2)-1);
     534          memcpy(fac->m+IDELEMS(fac),&(fac2->m[1]),(IDELEMS(fac2)-1)*sizeof(poly
     535));
     536          IDELEMS(fac)+=(IDELEMS(fac2)-1);
     537         }
     538      }
     539
    497540      for(i=IDELEMS(fac)-1;i>=0;i--)
    498541      {
     
    513556        if (n->sl==-1) pos=0;
    514557        else pos=posInS(n->S,n->sl,n->P.p);
    515         if (TEST_OPT_INTSTRATEGY)
    516         {
    517           if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog))
    518           {
    519             n->P.p = redtailBba(n->P.p,pos-1,n);
    520             pCleardenom(n->P.p);
    521           }
    522         }
    523         else
    524         {
    525           pNorm(n->P.p);
    526           if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog))
    527           {
    528             n->P.p = redtailBba(n->P.p,pos-1,n);
    529           }
    530         }
     558        // we have already reduced all elements from fac....
     559        //if (TEST_OPT_INTSTRATEGY)
     560        //{
     561        //  if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog))
     562        //  {
     563        //    n->P.p = redtailBba(n->P.p,pos-1,n);
     564        //    pCleardenom(n->P.p);
     565        //  }
     566        //}
     567        //else
     568        //{
     569        //  pNorm(n->P.p);
     570        //  if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog))
     571        //  {
     572        //    n->P.p = redtailBba(n->P.p,pos-1,n);
     573        //  }
     574        //}
    531575        if (TEST_OPT_DEBUG)
    532576        {
Note: See TracChangeset for help on using the changeset viewer.