Changeset 320ca6 in git


Ignore:
Timestamp:
May 5, 2014, 4:51:48 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e3cdb4839932af176f7bc54e157f8c427bd81b25
Parents:
844dcf092b230992c12b6f9bf2cc9b41371a7a53
git-author:
Martin Lee <martinlee84@web.de>2014-05-05 16:51:48+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-05-12 14:35:02+02:00
Message:
chg: added removeContent
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cfCharSets.cc

    r844dcf r320ca6  
    10501050}
    10511051
     1052CFList
     1053removeContent (const CFList & PS, StoreFactors & StoredFactors)
     1054{
     1055  CFListIterator i= PS;
     1056  if ((!i.hasItem()) || (PS.getFirst().level() == 0 ))
     1057    return PS;
     1058
     1059  CFList output;
     1060  CanonicalForm cc,elem;
     1061
     1062  for (; i.hasItem(); i++)
     1063  {
     1064    elem= i.getItem();
     1065    cc= content (elem, elem.mvar());
     1066    if (cc.level() > 0 )
     1067    {
     1068      output.append (elem / cc);
     1069      StoredFactors.FS1 = Union (CFList (cc), StoredFactors.FS1);
     1070    }
     1071    else
     1072      output.append(elem);
     1073  }
     1074  return output;
     1075}
    10521076
    10531077static bool
     
    14451469  {
    14461470    nr += 1;
    1447     if (degree(i.getItem()) > 1)
     1471    if (degree (i.getItem()) > 1)
    14481472    {
    14491473      qs= factorize (i.getItem());
     
    14521476    }
    14531477    else
    1454       qs= CFFList (CFFactor(i.getItem(),1));
     1478      qs= CFFList (CFFactor (i.getItem(), 1));
    14551479
    14561480    if ((qs.length() >= 2 ) || (qs.getFirst().exp() > 1))
     
    14771501        {  // search for a non linear elem
    14781502          qs= newfactoras (i.getItem(), as, success);
     1503          if (qs.getFirst().factor().inCoeffDomain())
     1504            qs.removeFirst();
    14791505          if (qs.length() > 1 || qs.getFirst().exp() > 1)
    14801506          { //found elem is reducible
     
    15311557    StoreFactors StoredFactors;
    15321558    cs= charSetViaModCharSet (qs, StoredFactors);
    1533 
    1534     //cs = removeContent (cs, StoredFactors); //do I really need it
     1559    cs= removeContent (cs, StoredFactors);
     1560
    15351561    factorset= StoredFactors.FS1;
    15361562
Note: See TracChangeset for help on using the changeset viewer.