Changeset e3cdb4 in git for factory


Ignore:
Timestamp:
May 5, 2014, 5:22:51 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
2a1008a43e16989a659f416d3aea369943c415b4
Parents:
320ca656a049b44638dd1949fd1b8982a1226531
git-author:
Martin Lee <martinlee84@web.de>2014-05-05 17:22:51+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-05-12 14:35:02+02:00
Message:
chg: make removal of contents optional
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/cfCharSets.cc

    r320ca6 re3cdb4  
    12561256/// modified medial set
    12571257CFList
    1258 modCharSet (const CFList& L, StoreFactors& StoredFactors)
     1258modCharSet (const CFList& L, StoreFactors& StoredFactors, bool removeContents)
    12591259{
    12601260  CFList QS= L, RS= L, CSet, tmp, contents, initial, removedFactors;
     
    12621262  CanonicalForm r, cF;
    12631263  bool noRemainder= true;
    1264   StoreFactors StoredFactors2, StoredFactors3;
     1264  StoreFactors StoredFactors2;
    12651265
    12661266  QS= uniGcd (L);
     
    12881288        {
    12891289          noRemainder= false;
    1290           removeContent (r, cF);
    1291 
    1292           if (!cF.isZero())
    1293             contents= Union (contents, factorPSet (CFList(cF))); //factorPSet maybe too much it should suffice to do a squarefree factorization instead
     1290          if (removeContents)
     1291          {
     1292            removeContent (r, cF);
     1293
     1294            if (!cF.isZero())
     1295              contents= Union (contents, factorPSet (CFList(cF))); //factorPSet maybe too much it should suffice to do a squarefree factorization instead
     1296          }
    12941297
    12951298          removeFactors (r, StoredFactors2, removedFactors);
     
    13031306      }
    13041307
    1305       if (!noRemainder)
     1308      if (removeContents && !noRemainder)
    13061309      {
    13071310        StoredFactors.FS1= Union (StoredFactors2.FS1, contents);
     
    13251328/// characteristic set via modified medial set
    13261329CFList
    1327 charSetViaModCharSet (const CFList& PS, StoreFactors& StoredFactors)
    1328 {
    1329   CFList result= modCharSet (PS, StoredFactors);
     1330charSetViaModCharSet (const CFList& PS, StoreFactors& StoredFactors, bool removeContents)
     1331{
     1332  CFList result= modCharSet (PS, StoredFactors, removeContents);
    13301333  if (result.isEmpty() || result.getFirst().inCoeffDomain())
    13311334    return CFList(1);
     
    13421345    return result;
    13431346
    1344   return charSetViaModCharSet (Union (PS, Union (RS, result)), StoredFactors);
     1347  return charSetViaModCharSet (Union (PS, Union (RS, result)), StoredFactors, removeContents);
    13451348}
    13461349
    13471350CFList
    1348 charSetViaModCharSet (const CFList& PS)
     1351charSetViaModCharSet (const CFList& PS, bool removeContents)
    13491352{
    13501353  StoreFactors tmp;
    1351   return charSetViaModCharSet (PS, tmp);
    1352 }
    1353 
    1354 CFList
    1355 modCharSet (const CFList& PS)
    1356 {
    1357   StoreFactors tmp;
    1358   return modCharSet (PS, tmp);
     1354  return charSetViaModCharSet (PS, tmp, removeContents);
    13591355}
    13601356
  • factory/cfCharSets.h

    r320ca6 re3cdb4  
    5454/// modified medial set
    5555CFList
    56 modCharSet (const CFList& PS, StoreFactors& StoredFactors);
    57 
    58 /// wrapper for modCharSet
    59 CFList
    60 modCharSet (const CFList& PS);
     56modCharSet (const CFList& PS, StoreFactors& StoredFactors, bool removeContents= true);
    6157
    6258/// modified characteristic set, i.e. a characteristic set with certain
    6359/// factors removed
    6460CFList
    65 charSetViaModCharSet (const CFList& PS);
     61charSetViaModCharSet (const CFList& PS, StoreFactors& StoredFactors, bool removeContents= true);
     62
     63/// modified characteristic set, i.e. a characteristic set with certain
     64/// factors removed
     65CFList
     66charSetViaModCharSet (const CFList& PS, bool removeContents= true);
    6667
    6768/// characteristic series
  • factory/facAlgFunc.cc

    r320ca6 re3cdb4  
    15031503  // factor F with minimal polys given in asnew
    15041504  asnew.append (F);
    1505   asnew= charSetViaModCharSet (asnew); // TODO use modCharSet
     1505  asnew= charSetViaModCharSet (asnew, false);
    15061506
    15071507  F= asnew.getLast();
     
    15491549    factor= M (factor);
    15501550    transform.append (factor);
    1551     transform= charSetViaModCharSet (transform); //TODO use modCharSet
     1551    transform= charSetViaModCharSet (transform, false);
    15521552    for (i= transform; i.hasItem(); i++)
    15531553    {
Note: See TracChangeset for help on using the changeset viewer.