Changeset 052e4f in git for libfac


Ignore:
Timestamp:
May 5, 2008, 4:54:29 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
039f1525452ab6cef5023eacbe02e7c220e25afb
Parents:
751bfd1896248f7cbfab7d7920a96d580dda7f3f
Message:
*hannes: switch representation and normalize in SqrFreeMV


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

Legend:

Unmodified
Added
Removed
  • libfac/factor/SqrFree.cc

    r751bfd r052e4f  
    22///////////////////////////////////////////////////////////////////////////////
    33// emacs edit mode for this file is -*- C++ -*-
    4 /* $Id: SqrFree.cc,v 1.18 2008-04-08 16:19:10 Singular Exp $ */
     4/* $Id: SqrFree.cc,v 1.19 2008-05-05 14:54:29 Singular Exp $ */
    55static const char * errmsg = "\nYou found a bug!\nPlease inform singular@mathematik.uni-kl.de\n Please include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you.";
    66///////////////////////////////////////////////////////////////////////////////
     
    367367{
    368368  CanonicalForm g=icontent(r), f = r;
    369   CFFList Outputlist, Outputlist2;
     369  CFFList Outputlist, Outputlist2,tmpOutputlist;
    370370
    371371  DEBINCLEVEL(CERR, "SqrFreeMV");
     
    387387      {
    388388        if (!mipo.isZero())
     389        {
     390          #if 1
     391          Variable alpha=rootOf(mipo);
     392          CanonicalForm ff=swapvar(f,mipo.mvar(),alpha);
     393          tmpOutputlist=SqrFreeMV(ff,0);
     394          ff=swapvar(f,alpha,mipo.mvar());
     395          for ( CFFListIterator i=tmpOutputlist; i.hasItem(); i++ )
     396          {
     397            ff=i.getItem().factor();
     398            ff /= ff.Lc();
     399            ff=swapvar(ff,alpha,mipo.mvar());
     400            Outputlist=myappend(Outputlist,CFFactor(ff,1));
     401          }
     402          #else
    389403          Outputlist=myUnion(SqrFreed(f,mipo),Outputlist) ;
     404          #endif
     405        }
    390406        else
    391407          Outputlist=myUnion(SqrFreed(f),Outputlist) ;
     
    439455/*
    440456$Log: not supported by cvs2svn $
     457Revision 1.18  2008/04/08 16:19:10  Singular
     458*hannes: removed rcsid
     459
    441460Revision 1.17  2008/03/18 17:46:15  Singular
    442461*hannes: gcc 4.2
Note: See TracChangeset for help on using the changeset viewer.